About this course
A practical introduction to classical machine learning. You will work through the complete workflow, from problem definition and data preparation to model training, evaluation and interpretation. Using scikit-learn, you will build classification and regression models on realistic business data, such as customer churn and demand forecasting.
What you will learn
- 01Translate a business question into a suitable machine learning problem.
- 02Prepare data using feature engineering and pipelines.
- 03Train and compare models for classification and regression.
- 04Evaluate models with the right metrics and prevent overfitting and data leakage.
- 05Perform exploratory data analysis to detect patterns, outliers and class imbalance.
- 06Optimise hyperparameters using grid search and cross-validation.
- 07Apply clustering to discover groups in your data, such as customer segments.
- 08Explain model results with feature importance and SHAP and translate them into business terms.
Programme
- Module 1
The ML workflow
Supervised and unsupervised learning, the steps from question to model, and when ML is or is not the answer. You will translate cases from your own work into ML problems.
- Module 2
Exploratory data analysis
Detecting distributions, correlations, outliers and class imbalance with pandas and seaborn. Hands-on: explore a dataset and formulate hypotheses.
- Module 3
Data preparation
Cleaning, imputing, encoding, scaling and creating features with ColumnTransformer and Pipeline in scikit-learn. You will learn how to prevent data leakage.
- Module 4
Training models
Linear and logistic regression, decision trees, random forests and gradient boosting in practice. Hands-on: build a churn or sales prediction model.
- Module 5
Evaluation and validation
Train/test splits, cross-validation, precision, recall, F1, ROC-AUC and MAE. You will spot overfitting with learning curves and choose the metric that fits the business question.
- Module 6
Model optimisation
Hyperparameter tuning with GridSearchCV and RandomizedSearchCV, handling class imbalance with class weights, and choosing a decision threshold.
- Module 7
Unsupervised learning
Clustering with k-means and DBSCAN, and dimensionality reduction with PCA. Hands-on: identify customer segments and describe them meaningfully.
- Module 8
Interpreting and sharing results
Feature importance, SHAP values, explaining results to stakeholders, and saving a model with joblib for reuse. To finish, you will present a final case from data to recommendation.
Audience and prerequisites
Who it is for
Data analysts, BI specialists, engineers and financial controllers ready to move into predictive modelling.
Prerequisites
Basic Python and pandas, for example from our Python for AI and Data course.