Python for Artificial Intelligence Training Course

Duration 10 days 20 modules · 65 contact hours
Level Intermediate Certificate on completion
Who attends Data Analysts, Data Scientists 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-AI-051

Before you join: Participants should be comfortable writing Python functions, using lists and dictionaries, importing libraries, and reading tabular data with pandas or similar tools.

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

Artificial intelligence projects often fail before model selection becomes relevant: data is poorly profiled, experiments cannot be reproduced, evaluation metrics do not match the business decision, or a promising prototype cannot be deployed and monitored safely. Professionals need to move from Python analysis to disciplined AI development, selecting appropriate methods for prediction, classification, segmentation, language processing, image analysis and generative AI use cases. This course addresses that practical gap through a structured build process grounded in Python, tested code, measurable model performance and responsible-use controls.

Participants work through the full AI delivery cycle using Python. They prepare datasets with NumPy and pandas, build visual diagnostics, engineer features, train supervised and unsupervised machine-learning models, assess performance with suitable metrics, and explain model decisions. The course then extends into neural networks, computer vision, natural language processing, transformer models, retrieval-augmented generation and prompt evaluation. Participants also examine experiment tracking, model packaging, API deployment patterns, drift monitoring and AI governance requirements.

Instruction combines short technical briefings with instructor demonstrations, guided coding, case-based analysis and group design reviews. Cases reflect common work in banking, public services, insurance, retail, telecommunications and development programmes, including fraud screening, service-demand forecasting, document classification and customer-support assistants. Participants build components throughout the course and finish by presenting a complete AI solution: a documented Python project with data preparation, model rationale, evaluation evidence, deployment design and risk controls.

The course suits technical professionals who already write Python and need a practical route into applied artificial intelligence work. It is particularly relevant to analysts, software engineers, data professionals and product specialists contributing to AI initiatives.

What you will be able to do

  • Build reproducible Python AI projects using virtual environments, Git and configuration files
  • Prepare and validate structured datasets using pandas, NumPy and data-quality checks
  • Train classification, regression and clustering models using scikit-learn pipelines
  • Evaluate model performance using confusion matrices, ROC-AUC, calibration and business metrics
  • Develop neural-network models for text and image classification using PyTorch
  • Construct retrieval-augmented generation workflows with embeddings, vector search and prompt evaluation
  • Package and monitor an AI service using APIs, experiment tracking and drift indicators
  • Present a documented end-to-end AI solution with governance, risk and implementation recommendations

Benefits of attending

For you

  • A portfolio-ready Python AI project with documented technical decisions
  • Practical model-selection criteria for common prediction and classification problems
  • Experience evaluating generative-AI outputs against defined quality and safety criteria
  • Reusable code patterns for data preparation, training, testing and inference
  • Greater confidence contributing to technical AI design and delivery discussions

For your organisation

  • More reproducible AI prototypes with versioned code, data assumptions and parameters
  • Better model choices through business-aligned evaluation metrics and error analysis
  • Reduced delivery risk through testing, monitoring and governance controls
  • Faster identification of feasible AI use cases from available data
  • Improved collaboration between analytics, software, risk and business teams

Course modules

20 modules over 10 days

Participants can set up a reproducible Python project for artificial intelligence development.

  • Python virtual environments, dependency pinning, and reproducible project directory conventions
  • Jupyter notebooks, scripts, and package modules selected for maintainable analysis
  • Git branching, commits, pull requests, and gitignore rules for data projects
  • Type hints and docstrings applied to reusable model preparation functions
  • Configuration files separate credentials, paths, parameters, and environment-specific settings
  • Logging captures data versions, training parameters, warnings, and runtime failures

Participants can inspect, clean and document datasets before model development.

  • CSV, JSON, SQL, and API data loaded into pandas DataFrames
  • Schema checks identify invalid types, duplicate records, missing values, and ranges
  • Data profiling quantifies distributions, outliers, cardinality, and category frequency
  • Missing-data mechanisms assessed as MCAR, MAR, or MNAR assumptions
  • Train, validation, and test partitions prevent information leakage during development
  • Data dictionaries record field definitions, ownership, lineage, and quality limitations

Participants can use numerical and visual analysis to identify useful modelling signals.

  • NumPy arrays, broadcasting, indexing, and vectorisation replace slow Python loops
  • Descriptive statistics reveal central tendency, spread, skewness, and unusual observations
  • Matplotlib and seaborn charts expose trends, relationships, and class imbalance
  • Correlation matrices distinguish linear association from causal claims and confounding
  • Grouped aggregations compare customer, transaction, product, and geographic segments
  • Distribution plots guide transformations, capping rules, and feature engineering decisions

Participants can create repeatable feature transformations using scikit-learn pipelines.

  • Numeric scaling uses StandardScaler, MinMaxScaler, and RobustScaler selection criteria
  • Categorical variables encoded through one-hot, ordinal, frequency, and target encoding
  • Date fields produce calendar, elapsed-time, seasonality, and recency features
  • Text fields transformed with tokenisation, n-grams, TF-IDF, and sparse matrices
  • ColumnTransformer applies distinct preprocessing rules to defined feature groups
  • Pipeline objects bind transformations and estimators without training-data leakage

Participants can translate a business question into a measurable machine-learning task.

  • Prediction targets defined from decisions, outcomes, timing, and available evidence
  • Classification, regression, ranking, and clustering matched to business problem types
  • Baseline models establish minimum performance before complex model development begins
  • Cost matrices express false-positive and false-negative consequences in operational terms
  • Success criteria combine technical metrics, adoption conditions, and process constraints
  • Target leakage identified through future information, proxy fields, and post-event variables

Participants can develop and evaluate regression models for continuous business outcomes.

  • Linear regression estimates continuous targets using interpretable coefficient-based relationships
  • Regularisation with Ridge, Lasso, and Elastic Net controls coefficient complexity
  • Mean absolute error, RMSE, and R-squared compared against decision requirements
  • Residual plots detect nonlinearity, heteroscedasticity, outliers, and systematic bias
  • Cross-validation estimates regression performance across alternative data partitions
  • Prediction intervals communicate uncertainty around estimated values and decisions

Participants can build classification models and set decision thresholds for operational use.

  • Logistic regression produces class probabilities and interpretable feature contributions
  • Confusion matrices quantify true positives, false positives, and missed cases
  • Precision, recall, F1-score, and specificity selected for stated business risks
  • ROC-AUC and precision-recall curves compare classifiers under class imbalance
  • Decision thresholds adjusted using workload capacity, costs, and intervention priorities
  • Probability calibration checked with reliability curves and Brier score

Participants can train and compare tree-based ensemble models for structured data.

  • Decision trees split observations using impurity reduction and stopping rules
  • Random forests reduce variance through bagging and random feature selection
  • Gradient boosting improves weak learners through sequential residual correction
  • XGBoost parameters control learning rate, depth, subsampling, and regularisation
  • Feature importance examined using permutation importance and SHAP values
  • Partial dependence plots show model response across selected feature ranges

Participants can compare model candidates using controlled experiments and documented evidence.

  • Stratified k-fold cross-validation preserves class proportions across validation folds
  • Grid search and random search tune parameters within defined search spaces
  • Validation results recorded with datasets, features, metrics, parameters, and timestamps
  • MLflow tracks experiments, artifacts, model versions, and comparison results
  • Statistical uncertainty considered before claiming one candidate model performs better
  • Champion-challenger selection documents acceptance criteria and release decisions

Participants can identify meaningful groups and anomalies without labelled outcomes.

  • K-means clustering partitions observations using distance minimisation and centroid updates
  • Feature scaling and dimensionality reduction improve distance-based clustering quality
  • Silhouette scores, inertia, and cluster profiles assess segmentation usefulness
  • Hierarchical clustering reveals nested groups through dendrogram interpretation
  • DBSCAN identifies dense clusters and noise without preset cluster counts
  • Isolation Forest flags unusual transactions, records, and behavioural patterns

Participants can prepare time-series data and evaluate forecasts using time-aware validation.

  • Time indexes, frequency checks, gaps, and duplicate timestamps prepared for forecasting
  • Lag features, rolling statistics, and calendar variables capture temporal patterns
  • Walk-forward validation preserves chronological order during model performance testing
  • Seasonal naive forecasts establish interpretable baseline performance for comparison
  • Forecast error measured with MAE, RMSE, MAPE, and weighted business costs
  • Data revisions and forecast horizons documented for operational planning use

Participants can build, train and diagnose basic neural networks using PyTorch.

  • Tensors, computational graphs, and automatic differentiation support neural network training
  • Dense layers transform features through weights, biases, and activation functions
  • ReLU, sigmoid, softmax, and loss functions selected by task type
  • Backpropagation updates parameters through gradient descent and learning-rate schedules
  • Batch size, epochs, regularisation, and dropout control training behaviour
  • Training and validation curves diagnose underfitting, overfitting, and instability

Participants can develop image-classification workflows using convolutional neural networks.

  • Image tensors encode height, width, channels, pixel values, and normalisation
  • Convolutional layers learn local visual patterns through filters and feature maps
  • Pooling, stride, padding, and receptive fields affect learned image representations
  • Data augmentation applies rotation, cropping, flipping, and colour transformations
  • Transfer learning adapts pretrained vision models to limited labelled image datasets
  • Class activation maps inspect image regions influencing classification predictions

Participants can prepare text data and build classical natural language processing models.

  • Text cleaning handles casing, punctuation, URLs, numbers, and encoding errors
  • Tokenisation and stopword handling prepare documents for language model features
  • Bag-of-words and TF-IDF represent documents as weighted sparse vectors
  • Naive Bayes and linear classifiers classify documents, messages, and tickets
  • Named entity recognition extracts people, organisations, locations, and dates
  • Error analysis groups language failures by vocabulary, ambiguity, and label quality

Participants can use transformer models and embeddings for semantic language tasks.

  • Transformer attention relates tokens through contextual relevance within input sequences
  • Token embeddings represent semantic similarity for search, classification, and clustering
  • Pretrained models selected by language, domain, latency, licensing, and task
  • Sentence embeddings support semantic search using cosine similarity rankings
  • Fine-tuning adapts transformer classifiers using labelled domain-specific text examples
  • Evaluation sets test accuracy, latency, bias, and failure patterns after adaptation

Participants can design and evaluate generative-AI prompts for bounded business tasks.

  • Large language models generate tokens from learned probability distributions and context
  • System, user, and assistant messages define roles, instructions, and examples
  • Few-shot prompting supplies representative input-output pairs for constrained tasks
  • Structured outputs use JSON schemas, validation rules, and retry handling
  • Prompt evaluation compares factuality, relevance, format compliance, and safety
  • Prompt injection and data-exfiltration risks inform defensive application design

Participants can design a retrieval-augmented generation solution for grounded responses.

  • Document chunking balances context coverage, retrieval precision, and source traceability
  • Embedding indexes store semantic representations for nearest-neighbour document retrieval
  • Vector search ranks relevant passages using similarity scores and metadata filters
  • Retrieval pipelines assemble grounded context before language-model response generation
  • Citation patterns link generated answers to source documents and passage identifiers
  • RAG evaluation measures retrieval recall, answer faithfulness, and response usefulness

Participants can specify a deployable AI service with monitoring and release controls.

  • FastAPI endpoints expose validated model inference through documented HTTP requests
  • Docker containers package Python dependencies, model artifacts, and runtime settings
  • Unit tests verify transformations, prediction interfaces, and expected error handling
  • Continuous integration runs tests, linting, and package checks before release
  • Model monitoring tracks latency, errors, drift, performance, and usage patterns
  • Rollback plans define triggers, model versions, owners, and service restoration steps

Participants can assess AI risks and define proportionate governance controls.

  • Bias assessments compare errors and outcomes across relevant protected groups
  • Data minimisation limits personal data collection, retention, and access permissions
  • Model cards document intended use, limitations, metrics, risks, and ownership
  • Human review points address high-impact decisions, exceptions, and appeal routes
  • Threat modelling identifies adversarial inputs, poisoning, extraction, and access threats
  • EU AI Act risk categories inform control selection and documentation priorities

Participants can build, review and present a complete Python AI solution with documented data, model, evaluation, deployment and governance decisions.

  • Problem statement defines users, decisions, constraints, benefits, and measurable success criteria
  • Dataset assessment records quality findings, leakage risks, permissions, and preparation choices
  • Python pipeline prepares features, trains selected models, and produces reproducible outputs
  • Evaluation report compares baselines, metrics, errors, thresholds, and acceptance criteria
  • Deployment design specifies API interfaces, monitoring indicators, ownership, and rollback actions
  • Peer review challenges assumptions, risk controls, evidence quality, and implementation feasibility

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

What you take back to work

  1. Reproducible Python AI project template
  2. Data-quality and feature-engineering checklist
  3. Model evaluation and threshold-selection workbook
  4. Retrieval-augmented generation design canvas
  5. Model card and AI risk assessment template
  6. End-to-end AI solution portfolio

Who should attend

  • Data Analysts — need to progress from reporting and statistical analysis into predictive modelling
  • Data Scientists — need disciplined Python workflows spanning modelling, evaluation and deployment design
  • Software Engineers — need to integrate machine-learning and generative-AI components into applications
  • Business Intelligence Developers — need to build data products that predict outcomes rather than describe history
  • AI Product Managers — need to assess technical choices, delivery risks and model evidence
  • Digital Transformation Specialists — need to scope viable AI use cases and implementation requirements

Skills and tools covered

Python AI developmentMachine learning evaluationNeural network modellingNatural language processingMLOps workflow designAI risk governance

Tools and standards

Python, scikit-learn, PyTorch, MLflow

How the course runs

Training methodology

The course uses short instructor briefings followed by guided Python development, case analysis, group design reviews and structured implementation planning. Participants inspect datasets, compare model results, diagnose errors and defend technical choices using realistic AI delivery scenarios. Instructor demonstrations show how tools fit together; group work focuses on use-case framing, evaluation criteria, risk controls and deployment decisions. Each participant develops reusable project components during the course, while trainers adapt datasets and sector cases to the cohort.

Requirements and prerequisites

Participants should be comfortable writing Python functions, using lists and dictionaries, importing libraries, and reading tabular data with pandas or similar tools. Familiarity with basic statistics, including distributions, averages, correlation and sampling, is expected. Prior experience with SQL, Git or Jupyter notebooks is helpful but not essential. Participants do not need previous machine-learning, deep-learning, cloud-platform or production-deployment experience. The course teaches the AI methods, evaluation approach and delivery workflow from an intermediate Python starting point rather than from beginner programming level.

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 functions, work with common Python data structures and use pandas at a basic level. The course does not teach programming from first principles, but it does not assume prior machine-learning or deep-learning experience.

Bring a laptop capable of running a current Python environment and a modern web browser. Participants receive setup guidance before the course; cloud-based notebook options may be used where local installation is restricted.

It is designed for analysts, data scientists, software engineers, BI developers and technical product professionals who need to build or assess AI solutions. It is less suitable for complete Python beginners or leaders seeking a non-technical AI awareness course.

The course covers both classical machine learning and generative-AI applications within a single Python delivery workflow. It also includes deployment, monitoring, security and governance, rather than stopping at model training or prompt writing.

Participants can use the project structure, evaluation templates, model card and deployment design patterns on internal AI initiatives. The methods apply to prediction, classification, segmentation, document processing, search and assistant use cases.

The first part builds the Python, data, machine-learning and evaluation foundation while participants create working project components. The second part develops neural networks, language models, retrieval-augmented generation, deployment and governance, ending with an end-to-end capstone presentation.

Questions about this course?

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