mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 09:39:10 +00:00
analysis.py v 1.1.5.001
This commit is contained in:
parent
2aa5b376b4
commit
1580ca3b3b
@ -11,6 +11,8 @@ __version__ = "1.1.5.001"
|
||||
|
||||
# changelog should be viewed using print(analysis.__changelog__)
|
||||
__changelog__ = """changelog:
|
||||
1.1.5.003:
|
||||
- added pca
|
||||
1.1.5.002:
|
||||
- reduced import list
|
||||
- added kmeans clustering engine
|
||||
@ -378,6 +380,10 @@ def kmeans(data, kernel=sklearn.cluster.KMeans()):
|
||||
|
||||
return centers, predictions
|
||||
|
||||
def pca(data, kernel = sklearn.decomposition.PCA(n_components=2)):
|
||||
|
||||
return kernel.fit_transform(data)
|
||||
|
||||
class Regression:
|
||||
|
||||
# Titan Robotics Team 2022: CUDA-based Regressions Module
|
||||
|
Loading…
Reference in New Issue
Block a user