Build Your Data Science Code Library

Organize your Data Science code snippets and speed up project development

Classification with SciKit-Learn

ALGORITHMS
LINEAR
Logistic Regression
SUPPORT VECTOR MACHINE
Linear SVM Classification
Non-Linear SVM Classification With RBF Kernal
TREE BASED
Decision Tree Classification
Bagging Decision Tree Classifier
Random Forest
AdaBoost
Histogram-Based Gradient Boosting
TUNING
SVM Hyperparameter Tuning With GridSearchCV
Tuning Random Forest Hyperparameters With RandomizedSearchCV
EVALUATION
METRICS
Sklearn Classification Metrics
Sklearn ROC AUC
Sklearn Precision Score
Sklearn Recall Score
Sklearn Precision Recall Curve
Sklearn ROC Curve
ANALYSIS
Shap Summary Plots
Shap Explainer
Search Snippets Collections Code Builder Login
  • Search Snippets
  • Snippet Collections
  • Code Builder
  • Login

Classification with SciKit-Learn

Code snippets for building a range of classification machine learning models using SciKit-Learn

ALGORITHMS
LINEAR
  • Logistic Regression
SUPPORT VECTOR MACHINE
  • Linear SVM Classification
  • Non-Linear SVM Classification With RBF Kernal
TREE BASED
  • Decision Tree Classification
  • Bagging Decision Tree Classifier
  • Random Forest
  • AdaBoost
  • Histogram-Based Gradient Boosting
TUNING
  • SVM Hyperparameter Tuning With GridSearchCV
  • Tuning Random Forest Hyperparameters With RandomizedSearchCV
EVALUATION
METRICS
  • Sklearn Classification Metrics
  • Sklearn ROC AUC
  • Sklearn Precision Score
  • Sklearn Recall Score
  • Sklearn Precision Recall Curve
  • Sklearn ROC Curve
ANALYSIS
  • Shap Summary Plots
  • Shap Explainer
By using Datasnips, you agree to our privacy policy including our cookie policy