Machine Learning with Python Training Course

Duration 10 days 19 modules · 65 contact hours
Level Intermediate Certificate on completion
Who attends Data Analysts, Business Intelligence Analysts and others
Fee from USD 2,200 KSh 190,000 for Kenyan organisations
Where 52 cities + online See dates by city
Next start 16 Nov 2026 Course code SD-DS-054

Before you join: Participants should be comfortable writing basic Python code, including variables, functions, loops, conditional statements and importing packages.

Dates & prices

Two start dates a month in every city, and live online on weekdays or weekends. Fees are per participant; classroom fees include tuition, materials, lunch and refreshments, and the certificate.

Suggest a date or city

Showing the next six months. Later dates, other cities and private deliveries for your team are available on request.

Course overview

Machine learning projects often fail before modelling begins: source data is poorly defined, target labels are unreliable, evaluation measures do not reflect the decision being supported, or a model cannot be explained to risk, operations or business stakeholders. Python provides a practical environment for turning operational, customer, financial and digital data into tested predictive and analytical models. The professional challenge is to produce models that are reproducible, appropriately validated and usable within real decision processes.

This course teaches participants to prepare data with pandas, explore distributions and relationships, engineer features, train supervised and unsupervised models, and evaluate results using suitable metrics. Participants work with linear models, logistic regression, decision trees, random forests, gradient boosting, clustering and dimensionality reduction. They learn to prevent data leakage, manage class imbalance, tune model parameters, use scikit-learn pipelines and explain model outputs using feature importance and SHAP values.

Teaching combines concise technical briefings with instructor demonstrations, case-based analysis and structured group work using realistic datasets. Cases may include loan default screening, customer churn, transaction anomaly detection, service demand forecasting and document classification. Participants build a complete machine learning project during the course, documenting the business question, data preparation decisions, validation approach, model comparison and recommendations for use. They leave with a reusable project structure and a reviewed model notebook suitable for adaptation to workplace data.

The course suits professionals who already use Python for analysis and need to build, assess or commission machine learning models. It is relevant to analysts, data professionals, product teams, risk functions and managers responsible for analytical decisions.

What you will be able to do

  • Prepare structured datasets using pandas, NumPy and reproducible data-cleaning workflows
  • Design predictive modelling problems with defensible targets, features and success measures
  • Build regression and classification models using scikit-learn estimators and pipelines
  • Evaluate model performance using cross-validation, confusion matrices, ROC curves and error analysis
  • Tune model hyperparameters using grid search and randomized search procedures
  • Apply clustering and principal component analysis to exploratory analytical problems
  • Explain model predictions using feature importance, partial dependence and SHAP values
  • Present a documented machine learning solution with implementation recommendations

Benefits of attending

For you

  • Ability to build tested prediction models from workplace datasets
  • Confidence selecting metrics that match business decisions and error costs
  • Reusable Python notebooks for data preparation, modelling and reporting
  • Stronger capability to challenge unsupported model performance claims
  • Practical evidence for data science and analytics career progression

For your organisation

  • More reliable predictive models for customer, operational and risk decisions
  • Reduced rework through repeatable data preparation and validation procedures
  • Clearer model documentation for audit, assurance and stakeholder review
  • Better comparison of machine learning approaches before implementation investment
  • Improved internal capability to identify data leakage, bias and weak evaluation

Course modules

19 modules over 10 days

Participants can define a machine learning problem with a usable target, decision context and success measure.

  • Decision framing for prediction, ranking, classification and segmentation problems
  • Target variables defined from observable outcomes and decision timing
  • Unit of analysis specified for customers, transactions, accounts or events
  • Prediction horizons aligned with intervention windows and data availability
  • Business costs translated into false-positive and false-negative consequences
  • CRISP-DM problem statements converted into analytical project requirements

Participants can organise a Python machine learning project for repeatable analysis and review.

  • Jupyter notebooks structured with assumptions, methods, outputs and decisions
  • Virtual environments isolate package versions and project dependencies
  • Python modules separate reusable functions from exploratory notebook code
  • Random seeds control reproducibility in sampling and model fitting
  • File paths managed with pathlib instead of machine-specific strings
  • Git commits record meaningful changes to data and modelling code

Participants can load, inspect and profile tabular data before modelling decisions are made.

  • CSV, Excel and Parquet files loaded with appropriate data types
  • DataFrame dimensions, columns and sample records inspected systematically
  • Missingness patterns profiled by variable, record and business segment
  • Duplicate records identified using keys, timestamps and field comparisons
  • Date fields parsed into timezone-aware datetime representations
  • Data dictionaries link source fields to business definitions and owners

Participants can clean source data while preserving an auditable record of transformations.

  • Validity checks identify impossible values, ranges and category codes
  • Missing numeric values treated using median, model-based or indicator methods
  • Categorical inconsistencies standardised through mapping tables and controlled vocabularies
  • Outliers assessed using domain thresholds, IQR rules and distribution plots
  • Cleaning functions retain raw fields alongside transformed analytical variables
  • Transformation logs document assumptions, exceptions and unresolved data issues

Participants can investigate distributions, relationships and data risks that influence model design.

  • Distribution plots reveal skewness, multimodality, truncation and unusual observations
  • Grouped summaries compare outcomes across products, regions and customer segments
  • Correlation matrices identify linear associations and redundant numeric predictors
  • Cross-tabulations expose category frequencies, sparsity and outcome concentration
  • Time-series plots detect drift, seasonality and data collection changes
  • Target distributions checked before selecting classification or regression approaches

Participants can apply core statistical concepts when interpreting model estimates and validation results.

  • Sampling distributions explain uncertainty in observed model performance estimates
  • Bias and variance describe underfitting, overfitting and generalisation error
  • Conditional probability supports interpretation of classification outcomes and base rates
  • Covariance and correlation distinguish association from predictive usefulness
  • Confidence intervals communicate uncertainty around performance and model coefficients
  • Statistical significance distinguished from practical decision-making relevance

Participants can create, transform and select model features without contaminating validation data.

  • Date features extract recency, frequency, duration and calendar effects
  • Ratios and interaction terms represent business relationships between variables
  • One-hot encoding converts nominal categories into model-ready indicator variables
  • Ordinal encoding preserves meaningful rank order within categorical fields
  • Log and Box-Cox transformations address highly skewed positive variables
  • Feature selection uses domain reasoning, mutual information and regularisation

Participants can create defensible data partitions and validation schemes for machine learning models.

  • Holdout test sets reserved until final model selection decisions
  • Stratified sampling preserves class proportions across classification partitions
  • K-fold cross-validation estimates performance across repeated training subsets
  • Time-based splits prevent future information entering historical predictions
  • Group-based splits prevent related records appearing in both partitions
  • Data leakage checks cover targets, timestamps, aggregates and preprocessing steps

Participants can build and assess regression models for continuous business outcomes.

  • Ordinary least squares regression establishes an interpretable baseline model
  • Residual plots assess heteroscedasticity, nonlinearity and influential observations
  • Mean absolute error and RMSE compare continuous prediction performance
  • R-squared interpreted alongside error metrics and operational tolerances
  • Ridge and Lasso regression control coefficient instability and feature selection
  • Prediction intervals distinguish expected values from plausible outcome ranges

Participants can train and assess binary and multiclass classification models for operational decisions.

  • Logistic regression estimates class probabilities from predictor variables
  • Confusion matrices separate true positives, false positives and missed cases
  • Precision, recall and F1 score reflect different error priorities
  • ROC curves compare discrimination across possible decision thresholds
  • Precision-recall curves assess rare-event classification performance more clearly
  • Threshold selection incorporates workload capacity, risk appetite and intervention costs

Participants can build preprocessing and modelling pipelines that prevent inconsistent transformations.

  • ColumnTransformer applies separate transformations to numeric and categorical features
  • SimpleImputer fits missing-value rules using training data only
  • StandardScaler prepares scale-sensitive algorithms for reliable model fitting
  • Pipeline objects combine preprocessing, estimators and cross-validation procedures
  • Feature names traced through transformations for model review and interpretation
  • Joblib serialisation saves fitted pipelines with versioned model artefacts

Participants can use tree-based models to capture nonlinear patterns and feature interactions.

  • Decision tree splits selected using Gini impurity or variance reduction
  • Maximum depth and minimum samples control tree complexity
  • Random forests aggregate decorrelated trees to reduce prediction variance
  • Out-of-bag estimates provide internal validation for random forest models
  • Permutation importance tests performance loss after feature values are shuffled
  • Partial dependence plots show average feature effects on predictions

Participants can tune boosted models systematically while controlling overfitting and computational cost.

  • Gradient boosting fits successive trees to reduce residual prediction error
  • Learning rate and estimator count jointly control boosting behaviour
  • GridSearchCV compares defined parameter combinations using cross-validation
  • RandomizedSearchCV samples wider hyperparameter spaces within fixed computing budgets
  • Validation scores compared with training scores to detect overfitting
  • Search results recorded with parameters, metrics, runtime and selected rationale

Participants can address rare events and identify unusual observations using suitable modelling techniques.

  • Class prevalence quantified before selecting resampling or weighting strategies
  • Class weights increase attention to minority outcomes during model fitting
  • Random undersampling and oversampling evaluated within cross-validation folds
  • SMOTE generates synthetic minority examples from nearest-neighbour relationships
  • Isolation Forest identifies unusual records without labelled anomaly examples
  • Rare-event results reviewed using precision, recall and alert volumes

Participants can build and assess clusters for segmentation and exploratory pattern discovery.

  • K-means clustering groups records using distances from learned centroids
  • Feature scaling prevents large-unit variables dominating cluster assignments
  • Elbow plots compare within-cluster variation across candidate cluster counts
  • Silhouette scores assess separation and cohesion among identified clusters
  • Hierarchical clustering produces dendrograms for alternative segmentation structures
  • Cluster profiles translate statistical groups into operationally meaningful segments

Participants can reduce high-dimensional data while retaining useful variation for analysis and modelling.

  • Principal component analysis transforms correlated variables into orthogonal components
  • Explained variance guides selection of retained principal components
  • Standardisation precedes PCA when features use different measurement scales
  • Component loadings identify original variables contributing to each component
  • PCA supports visual exploration of high-dimensional customer and transaction data
  • Dimensionality reduction assessed against interpretability and predictive performance

Participants can explain model behaviour and identify governance issues before operational use.

  • Feature importance ranked with permutation methods and tree-based measures
  • SHAP values explain individual predictions and aggregate feature contributions
  • Partial dependence plots test plausible directional relationships in model behaviour
  • Fairness checks compare error rates across relevant protected groups
  • Model cards record intended use, limits, data sources and performance
  • Human review points defined for high-impact or low-confidence decisions

Participants can prepare a practical plan for releasing, monitoring and reviewing a machine learning model.

  • Batch scoring and real-time scoring matched to decision latency requirements
  • Input validation checks schemas, ranges, categories and missing fields
  • Data drift monitored through population stability index and distribution tests
  • Concept drift identified when outcome relationships change over time
  • Performance monitoring compares recent predictions against realised outcomes
  • Retraining triggers specify ownership, evidence thresholds and approval steps

Participants can build, review and present a complete machine learning solution with documented recommendations.

  • Business question translated into target, features, constraints and success criteria
  • Source data profiled, cleaned and transformed using reproducible Python code
  • Candidate models compared through cross-validation and decision-relevant metrics
  • Selected pipeline tested against held-out data and plausible error scenarios
  • Interpretation findings documented with limitations, fairness checks and governance controls
  • Stakeholder presentation communicates recommendation, implementation plan and monitoring measures

Exercises and examples are adapted to each cohort's sectors and roles.

What you take back to work

  1. Machine learning project charter template
  2. Reproducible pandas data-preparation notebook
  3. scikit-learn modelling pipeline template
  4. Model validation and metric-selection checklist
  5. Model card and governance review template
  6. End-to-end capstone model analysis

Who should attend

  • Data Analysts — need to move from descriptive reporting to predictive analysis
  • Business Intelligence Analysts — need reproducible models for operational and customer decisions
  • Data Scientists — need structured practice with scikit-learn modelling workflows
  • Risk Analysts — need to assess predictive models for credit, fraud or compliance use
  • Product Managers — need to frame machine learning requirements and assess model outputs
  • Software Developers — need to integrate trained models into Python-based applications

Skills and tools covered

Python data preparationPredictive modellingModel validationFeature engineeringModel interpretationMachine learning governance

Tools and standards

Python, pandas, scikit-learn, Jupyter Notebook

How the course runs

Training methodology

The course uses short instructor briefings followed by guided coding, case analysis and group review of model choices. Participants work with prepared datasets that resemble customer, financial, operational and digital data commonly held by large organisations. Each topic connects technical decisions to a business question, error costs and evidence for review. Trainers demonstrate Python workflows, then support participants as they adapt notebooks, compare results and document assumptions. Application planning links the final project to an appropriate workplace use case.

Requirements and prerequisites

Participants should be comfortable writing basic Python code, including variables, functions, loops, conditional statements and importing packages. They should be able to read a CSV file, work with tables and understand basic descriptive statistics such as mean, median, variance and correlation. Prior use of pandas is helpful but not essential. No previous machine learning, advanced mathematics, R programming, cloud platform or production deployment experience is required. Participants should bring a laptop able to run a current Python environment and install course materials before the first session.

A typical training day

08:30 – 10:30First session
10:30 – 10:45Refreshment break
10:45 – 12:30Second session
12:30 – 13:30Lunch and networking
13:30 – 15:00Third session
15:00 – 15:15Refreshment break
15:15 – 16:30Workshop and daily review

Live online deliveries follow the same structure in East Africa Time, with shorter screen blocks and longer breaks.

What the fee includes

  • Instruction by a practitioner facilitator
  • Full course workbook and materials
  • Exercise files, templates and case studies
  • Refreshments and lunch on classroom deliveries
  • Certificate of completion
  • Post-course application plan

Frequently asked questions

You should be able to write basic Python code and work with tabular data. Familiarity with descriptive statistics is assumed, but prior machine learning experience is not required.

Bring a laptop capable of running a current Python environment and Jupyter notebooks. Installation instructions and course files are provided before the course begins.

It is designed for analysts, data professionals, risk specialists, developers and product professionals who need to build or assess machine learning models. It is not intended for complete beginners to Python.

Python programming courses focus on language fundamentals, while data analysis courses focus mainly on querying, cleaning and reporting. This course uses Python specifically to design, validate, interpret and document machine learning models.

Participants can adapt the project structure to use cases such as churn prediction, demand forecasting, risk screening, fraud alerts or customer segmentation. The course also provides methods for reviewing models commissioned from internal or external teams.

The first week establishes data preparation, feature engineering, validation and core supervised models. The second week covers advanced modelling, unsupervised learning, interpretation, governance, monitoring and the final capstone project.

Questions about this course?

Ask about dates, fees, group bookings or running it for your team. Our training team replies by email.