Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/mongo-hack.
Something went wrong. Try again.
mongo-hack smush.py
123456789import numpy as npfrom sklearn.decompositions import PCA
def smush(matrix): pca = PCA(n_components=2) smushed = pca.fit_transform(matrix) return smushed