Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Performs dimensionality reduction using PCA.
from sklearn.decomposition import PCA
import numpy as np
x = np.array([[1,2,3],[4,5,6],[7,8,9]])
pca = PCA(n_components=2)
x_reduced = pca.fit_transform(x)
print('Reduced data:\n', x_reduced)Scikit-learn is an open-source Python library for machine learning that provides simple and efficient tools for data mining, analysis, and predictive modeling, built on top of NumPy, SciPy, and Matplotlib.
Origin & Creator
Scikit-learn was created by David Cournapeau in 2007 as a Google Summer of Code project, and later developed by a community of contributors to become a widely adopted ML library in Python.
Industrial Note
Scikit-learn is widely used in industry and research for predictive modeling, data analysis, prototyping machine learning workflows, and teaching ML concepts.