scikit-learn
11 tutorials tagged “scikit-learn”.
- Bias and FairnessModels learn the bias in their data, even without a group column. Measure fairness in a scholarship model, see a proxy carry bias, and fix the labels.
- Unsupervised Learning and ClusteringUnsupervised learning finds structure in data without labels. Group 300 students by study habits with k-means and hierarchical clustering.
- Decision TreesA decision tree learns a flowchart of yes-or-no questions. Read a real tree's rules, and see how a tree that grows too deep memorizes instead of learning.
- Dimensionality ReductionDimensionality reduction describes data with fewer features. Use PCA to turn six study habits into two, and see how much information each component keeps.
- Random Forests and Gradient BoostingEnsembles combine many decision trees into one stronger model. Compare a single tree, a random forest and gradient boosting, and measure which features matter.
- Feature EngineeringPrepare data so models can learn from it: encode text categories, fill missing values, scale numbers, and create new features, all inside one pipeline.
- Linear RegressionLinear regression predicts a number from features with a weighted sum. Fit one to 200 Dallas house prices, read its coefficients and measure its error.
- Logistic Regression and ClassificationLogistic regression predicts the probability of a category. Estimate each family's chance of paying late, read the coefficients, and choose a threshold.
- Evaluating Models: MetricsMeasure models with the right numbers: the confusion matrix, precision, recall, F1 and ROC AUC for classifiers; MAE, RMSE and R² for regression.
- The Scikit-Learn WorkflowChoose between models properly: build pipelines, compare candidates with cross-validation on training data, then test the winner once on the test set.