Information
| Unit | INSTITUTE OF NATURAL AND APPLIED SCIENCES |
| ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING (MASTER) (WITH THESIS) (ENGLISH) | |
| Code | AIE507 |
| Name | Applied Machine Learning |
| Term | 2026-2027 Academic Year |
| Term | Fall and Spring |
| Duration (T+A) | 3-0 (T-A) (17 Week) |
| ECTS | 6 ECTS |
| National Credit | 3 National Credit |
| Teaching Language | İngilizce |
| Level | Lisansüstü Dersi |
| Type | Normal |
| Mode of study | Yüz Yüze Öğretim |
| Catalog Information Coordinator | Doç. Dr. Kasım ZOR |
| Course Instructor |
The current term course schedule has not been prepared yet.
|
Course Goal / Objective
The aim of this course is to equip students with the competence to apply classical (non-deep) machine learning methods end to end on real data sets. Using the scikit-learn ecosystem, the course covers the whole process from data preparation and feature engineering through model selection, hyperparameter tuning and evaluation to basic MLOps practices. Students are expected to develop reproducible and reliable models while taking into account the assumptions and limitations of the methods.
Course Content
The applied machine learning workflow and the Python ecosystem; problem framing, exploratory data analysis, data splitting and data leakage; scikit-learn pipelines; data preprocessing and feature engineering; linear regression and regularisation (ridge, lasso, elastic net); logistic regression, classification performance metrics and probability calibration; support vector machines and kernels; model selection, cross-validation strategies and hyperparameter tuning; decision trees; bagging and random forests; boosting methods (gradient boosting, XGBoost, LightGBM, CatBoost) and stacking; Bayesian hyperparameter optimisation; learning from imbalanced data and cost-sensitive learning; basic clustering and dimensionality reduction within the pipeline; MLOps basics: experiment tracking, model versioning, serialisation, model serving through a REST API and monitoring; an end-to-end term project on a real data set. Deep learning is outside the scope of this course and is covered in AIE505.
Course Precondition
None. Python programming and a basic knowledge of linear algebra, probability and statistics are recommended.
Resources
The course is taught hands-on in Jupyter notebooks using Python (NumPy, pandas, Matplotlib), scikit-learn, XGBoost, LightGBM, CatBoost, imbalanced-learn, Optuna, MLflow and FastAPI. Supplementary materials: the official scikit-learn user guide; Pedregosa et al. (2011), 'Scikit-learn: Machine Learning in Python', Journal of Machine Learning Research, 12; Chen and Guestrin (2016), 'XGBoost: A Scalable Tree Boosting System', KDD; Ke et al. (2017), 'LightGBM: A Highly Efficient Gradient Boosting Decision Tree', NeurIPS. A PDF version of James et al. (2023) is made freely available by the authors, and the Jupyter notebooks and online appendices of Géron (2025) are published with open access. Throughout the semester, students carry out an end-to-end term project on a real data set; the project is completed with a reproducible code repository, a technical report and an oral presentation. Deep learning is covered in detail in AIE505, model interpretability in AIE512 and optimisation theory in AIE522.
Notes
1. Géron, A. (2025). Hands-On Machine Learning with Scikit-Learn and PyTorch: Concepts, Tools, and Techniques to Build Intelligent Systems. O'Reilly Media. 2. James, G., Witten, D., Hastie, T., Tibshirani, R., Taylor, J. (2023). An Introduction to Statistical Learning: With Applications in Python. Springer. 3. Hastie, T., Tibshirani, R., Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction (2nd ed.). Springer. 4. Kuhn, M., Johnson, K. (2013). Applied Predictive Modeling. Springer. 5. Raschka, S., Liu, Y. H., Mirjalili, V. (2022). Machine Learning with PyTorch and Scikit-Learn: Develop Machine Learning and Deep Learning Models with Python. Packt Publishing. 6. Huyen, C. (2022). Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications. O'Reilly Media.
Course Learning Outcomes
| Order | Course Learning Outcomes |
|---|---|
| LO01 | Formulate a real-world problem as a supervised learning task, and design and implement in scikit-learn an end-to-end machine learning pipeline covering data preparation, modelling and evaluation. |
| LO02 | Apply data preprocessing and feature engineering techniques (imputation, scaling, encoding, feature construction and selection) without introducing data leakage. |
| LO03 | Explain the assumptions, strengths and limitations of linear models, support vector machines, decision trees and ensemble methods, and select a suitable model for a given problem with justification. |
| LO04 | Train and tune random forest and gradient boosting (XGBoost, LightGBM, CatBoost) models and compare them with other models. |
| LO05 | Design reproducible model-selection protocols using appropriate cross-validation strategies, nested cross-validation and hyperparameter search methods, and evaluate models with performance metrics suited to the problem. |
| LO06 | Apply resampling, class weighting, threshold adjustment and cost-sensitive learning strategies to imbalanced data sets, and justify the choice of evaluation metric. |
| LO07 | Use basic MLOps practices such as experiment tracking, model versioning and model serving through a REST API to make a machine learning solution ready for use, and report the results in written and oral form. |
Relation with Program Learning Outcome
| Order | Type | Program Learning Outcomes | Level |
|---|---|---|---|
| PLO01 | Bilgi - Kuramsal, Olgusal | Building on undergraduate-level qualifications, has advanced theoretical knowledge of linear algebra, multivariable calculus, probability, statistics, optimisation and information theory required for original work in artificial intelligence and machine learning. | 2 |
| PLO02 | Bilgi - Kuramsal, Olgusal | Has an in-depth understanding of current methods in the main sub-fields of artificial intelligence, notably machine learning, deep learning, reinforcement learning, computer vision, natural language processing and generative models, together with their assumptions and limitations. | 4 |
| PLO03 | Beceriler - Bilişsel, Uygulamalı | Formulates real-world problems as appropriate artificial intelligence/machine learning problems, and designs and implements solutions covering data preparation, model selection, training and evaluation. | 5 |
| PLO04 | Beceriler - Bilişsel, Uygulamalı | Develops efficient, scalable and reproducible software and models using Python and current libraries and frameworks, and makes effective use of big data and high-performance computing resources. | 5 |
| PLO05 | Beceriler - Bilişsel, Uygulamalı | Evaluates methods with appropriate performance metrics, statistical tests and comparative experiments, interprets results critically and designs reproducible experimental protocols. | 4 |
| PLO06 | Yetkinlikler - Öğrenme Yetkinliği | Reviews the national and international literature of the field systematically and critically, independently learns new and emerging methods, and adapts them to their own research problem. | 2 |
| PLO07 | Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği | Defines a research problem in the field, solves it independently by developing an original method or model, and conducts a thesis study that contributes to scientific knowledge. | |
| PLO08 | Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği | Takes responsibility and leadership in interdisciplinary teams working on complex problems in application domains such as health, energy, agriculture, industry, finance and logistics, and develops solutions together with domain experts. | 3 |
| PLO09 | Yetkinlikler - İletişim ve Sosyal Yetkinlik | Communicates the processes and results of their work clearly and systematically in English, in written (paper, thesis, report) and oral form, in national and international settings. | 3 |
| PLO10 | Yetkinlikler - Alana Özgü Yetkinlik | Observes scientific and professional ethics, data privacy, fairness, transparency and safety principles and the relevant legal regulations in developing and using AI systems, and assesses their societal impact | |
| PLO11 | Yetkinlikler - Alana Özgü Yetkinlik | Deploys trustworthy, explainable and sustainable AI solutions to real environments such as the cloud, edge devices and industrial systems, taking into account resource constraints such as energy, memory and latency. | 3 |
Week Plan
| Week | Topic | Preparation | Methods |
|---|---|---|---|
| 1 | Introduction to applied machine learning: supervised and unsupervised learning, the project life cycle, overfitting and underfitting, the Python data science ecosystem (NumPy, pandas, scikit-learn) | Read Géron (2025), Chapter 1; set up the Python working environment | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Gösteri |
| 2 | End-to-end machine learning project: problem framing, exploratory data analysis, training/validation/test split, data leakage, scikit-learn Pipeline and ColumnTransformer | Read Géron (2025), Chapter 2 | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 3 | Data preprocessing and feature engineering: missing-value imputation, scaling, encoding of categorical variables (one-hot, target encoding), feature construction, interaction terms, discretisation and feature selection | Read Kuhn and Johnson (2013), Chapter 3, and Raschka et al. (2022), Chapter 4 | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Problem Çözme |
| 4 | Linear models for regression: least squares, polynomial features, regularisation (ridge, lasso, elastic net), regression performance metrics (MAE, RMSE, R²) and residual analysis | Read James et al. (2023), Chapters 3 and 6 | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Problem Çözme |
| 5 | Classification and performance metrics: logistic regression, multiclass strategies, confusion matrix, precision, recall, F1, ROC-AUC and precision–recall curves, probability calibration | Read James et al. (2023), Chapter 4, and the classification chapter of Géron (2025) | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 6 | Support vector machines: the maximal margin classifier, soft margin, the kernel trick (polynomial, RBF), support vector regression, the C and gamma hyperparameters; the k-nearest neighbours baseline | Read James et al. (2023), Chapter 9, and the online Appendix C (Support Vector Machines) of Géron (2025) | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Problem Çözme |
| 7 | Model selection and hyperparameter tuning: k-fold, stratified, grouped and time-series cross-validation, nested cross-validation, learning curves, grid and random search; mid-term review | Read James et al. (2023), Chapter 5; Hastie et al. (2009), Chapter 7; and Raschka et al. (2022), Chapter 6 | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Soru-Cevap |
| 8 | Mid-Term Exam | exam preparation | Ölçme Yöntemleri: Yazılı Sınav |
| 9 | Decision trees: the CART algorithm, impurity measures (Gini, entropy), regression trees, pruning and the cost-complexity parameter, interpretability and instability of trees; submission of term-project proposals | Read James et al. (2023), Chapter 8; prepare the term-project proposal | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 10 | Ensemble methods I: voting classifiers, bagging, random forests, extra trees, out-of-bag estimation, impurity-based and permutation-based feature importance | Read Géron (2025), Chapter 6, and Hastie et al. (2009), Chapter 15 | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 11 | Ensemble methods II: AdaBoost, gradient boosting, histogram-based gradient boosting, XGBoost, LightGBM and CatBoost, early stopping, stacking; Bayesian hyperparameter optimisation with Optuna | Read Hastie et al. (2009), Chapter 10, and the paper by Chen and Guestrin (2016) | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 12 | Learning from imbalanced data: choosing appropriate performance metrics, random under- and over-sampling, SMOTE and its variants, class weights, decision-threshold adjustment and cost-sensitive learning | Read Kuhn and Johnson (2013), Chapter 16; review the imbalanced-learn documentation | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Örnek Olay |
| 13 | Unsupervised learning within the pipeline: k-means and hierarchical clustering, the silhouette coefficient, clustering and PCA as preprocessing steps (treated in depth in AIE504 and AIE509) | Read James et al. (2023), Chapter 12, and Raschka et al. (2022), Chapter 10 | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 14 | MLOps basics: experiment tracking and model registry (MLflow), data and model versioning, model serialisation, model serving through a REST API (FastAPI), containerisation and data-drift monitoring | Read the chapters on model development, deployment and monitoring in Huyen (2022); organise the project code repository | Öğretim Yöntemleri: Anlatım, Alıştırma ve Uygulama, Gösteri |
| 15 | Term-project presentations: presentation and discussion of end-to-end solutions, experimental protocols and results; course review | Prepare the project report and presentation | Öğretim Yöntemleri: Proje Temelli Öğrenme , Tartışma |
| 16 | Term Exams | exam preparation | Ölçme Yöntemleri: Proje / Tasarım |
| 17 | Term Exams | exam preparation | Ölçme Yöntemleri: Proje / Tasarım |
Student Workload - ECTS
| Works | Number | Time (Hour) | Workload (Hour) |
|---|---|---|---|
| Course Related Works | |||
| Class Time (Exam weeks are excluded) | 14 | 3 | 42 |
| Out of Class Study (Preliminary Work, Practice) | 14 | 4 | 56 |
| Assesment Related Works | |||
| Homeworks, Projects, Others | 0 | 0 | 0 |
| Mid-term Exams (Written, Oral, etc.) | 1 | 18 | 18 |
| Final Exam | 1 | 24 | 24 |
| Total Workload (Hour) | 140 | ||
| Total Workload / 25 (h) | 5,60 | ||
| ECTS | 6 ECTS | ||