Machine Learning Practices
Dr. Ashish Tendulkar
IIT Madras
Introduction to
Scikit-Learn (sklearn)
- Consistency
- Inspection
- Nonproliferation of classes
- Composition
- Sensible defaults
Introduction
- Estimators
- Predictors
- Transformers
Types of sklearn objects
- Estimates model parameter
- fit( )
- Examples- Imputer, LinearRegression
Estimators
- Some estimators are capable of making predictions on a given dataset
- predict( )
- score( )
- Examples- LinearRegression
Predictors
- Some estimators can transform datasets
- transform( )
- fit_transform( )
Transformers
- Some estimators can transform datasets
- Can be arranged in the following manner:
- Data
- Models
- Model evaluation
- Model inspection and selection
sklearn API
Supervised learning models-
- Regression
- Classification
Unsupervised learning models-
Clustering
Models
Regression classes include:
- Classicial linear regression models
- Linear regression
- Bayesian linear regression
- Outlier robust regression
- Multi-task linear regression models
- Generalized linear models of regressions
- sklearn.trees
- sklearn.multioutput
Regression
- sklearn.linear_model - classical algorithms like logistic regression, SVM etc.
- sklearn.svm - Support Vector Machine algorithms.
- sklearn.trees - decision tree-based models for classification and regression.
- sklearn.neighbors - k-nearest neighbors algorithm.
- sklearn.naive_bayes- Naive-bayes classification.
- sklearn.multiclass - multi-class classification models.
- sklearn.multioutput - multioutput classification and regression.
Classification
-
sklearn.metrics - different metrics for model evaluation.
- Classification metrics
- Regression metrics
- Clustering metrics
Model evaluation
- Model selection module: sklearn.model_selection
- Model inspection: sklearn.inspection
Model inspection and selection
Introduction to Scikit-Learn (sklearn)
By Debajyoti Biswas
Introduction to Scikit-Learn (sklearn)
- 74