Cheatography
https://cheatography.com
Scikit-learn is an open-source Python library that implements a range of machine learning, preprocessing, cross-validation and visualization algorithms using a unified interface.
Pre-processing
sklearn.preprocessing.StandardScaler |
sklearn.preprocessing.Imputer |
sklearn.preprocessing.LabelBinarizer |
sklearn.preprocessing.OneHotEncoder |
sklearn.preprocessing.PolynomialFeatures |
Metric
sklearn.metrics.accuracy_score |
sklearn.metrics.log_loss |
sklearn.metrics.roc_auc_score |
sklearn.metrics.mean_absolute_error |
sklearn.metrics.r2_score |
sklearn.metrics.label_ranking_loss |
sklearn.metrics.mutual_info_score |
Model Selection
sklearn.model_selection.KFold |
sklearn.model_selection.StratifiedKFold |
sklearn.model_selection.TimeSeriesSplit |
sklearn.model_selection.train_test_split |
sklearn.model_selection.GridSearchCV |
sklearn.model_selection.RandomizedSearchCV |
sklearn.model_selection.cross_val_score |
Regression
sklearn.tree.DecisionTreeRegressor |
sklearn.svm.SVR |
sklearn.linear_model.Linear Regression |
sklearn.linear_model.Lasso |
sklearn.linear_model.SGDRegressor |
sklearn.linear_model.ElasticNet |
sklearn.ensemble.RandomForest Regressor |
sklearn.ensemble.GradientBoosting Regressor |
sklearn.neural_network. MLPRegressor |
|
|
Classification
sklearn.neural_network.MLPClassifier |
16. sklearn.tree.DecisionTreeClassifier |
sklearn.svm.SVC |
sklearn.linear_model.Logistic Regression |
sklearn.linear_model.SGDClassifier |
sklearn.naive_bayes.GaussianNB |
sklearn.neighbors.KNeighbors Classifier |
sklearn.ensemble.RandomForestClassifier |
sklearn.ensemble.GradientBoosting Classifier |
Clustering
sklearn.cluster.KMeans |
sklearn.cluster.DBSCAN |
sklearn.cluster.AgglomerativeClustering |
sklearn.cluster.SpectralBiclustering |
Miscellaneous
sklearn.datasets.load_boston |
sklearn.datasets.make_classification |
sklearn.feature_extraction.FeatureHasher |
sklearn.feature_selection.SelectKBest |
sklearn.pipeline.Pipeline |
sklearn.semi_supervised.LabelPropagation |
Dimensionality Reduction
sklearn.decomposition.PCA |
sklearn.decomposition.LatentDirichletAllocation |
klearn.decomposition.SparseCoder |
sklearn.decomposition.DictionaryLearning |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets