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