Never Forget Another Line of Code

Datasnips is a free code snippet hosting platform for Data Science & AI. It enables your code snippets to be organized, searchable & shareable.

LOGIN
PUBLIC SNIPPETS
LATEST SNIPPETS
TOP SNIPPETS
SNIPPET COLLECTIONS
ML CODE BUILDER
BLOG
POPULAR TAGS
#XGBOOST
#LIGHTGBM
#CATBOOST
#TENSORFLOW
#PANDAS
#MATPLOTLIB
#SEABORN
LOGIN
PUBLIC SNIPPETS
LATEST SNIPPETS
TOP SNIPPETS
SNIPPET COLLECTIONS
ML CODE BUILDER
BLOG

Unsupervised Learning With SciKit-Learn Collection

Code for training unsupervised machine learning models with SciKit-Learn

Unsupervised Learning
CLUSTERING

Sklearn Kmeans Example - Clustering Data Using K-Means

Sklearn Kmeans Elbow Method - Plotting Inertia With Matplotlib

PCA

Sklearn Principle Component Analysis - PCA Example

Python PCA - Plotting Explained Variance Ratio with Matplotlib