Perché Apache Spark verrà sostituito da Python

mtcars.pca <- prcomp(x, center = TRUE,scale. = TRUE)

summary(mtcars.pca)
>>> from sklearn.decomposition import PCA
[...]
>>> pca = PCA(n_components=2)
>>> pca.fit(x)
PCA(n_components=2)
>>> print(pca.explained_variance_ratio_)
[0.9924... 0.0075...]
>>> print(pca.singular_values_)
[6.30061... 0.54980...]

--

--

Data Architect — Senior Software Developer http://eracle.me

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store