analysis.py v 1.1.5.001

This commit is contained in:
art 2019-10-31 11:03:52 -05:00
parent 2aa5b376b4
commit 1580ca3b3b

View File

@ -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