Python for Machine LearningModule description #41143 / Version 5
- 6 CP
- Written exam
- Graded
- Winter and summer semester
- English
This module description is not valid in the current semester (Winter semester 2026/27).
Current version (v7)
| Module / Version | #41143 / #5 |
|---|---|
| Validity | Summer semester 2025 – Winter semester 2025/26 |
| Available language(s) | English |
| Credit points | 6 |
| Person responsible for the module | Müller, Klaus-Robert |
| Grading | Graded |
| Exam format | Written exam |
| Language(s) of instruction | English |
Affiliation
| Faculty | Fakultät IV |
|---|---|
| Institute | Institut für Softwaretechnik und Theoretische Informatik |
| Academic chair | 34352000 FG Maschinelles Lernen |
Contact
| Office | FR 6-1 |
|---|---|
| Contact person | Wolff, Jannik |
| E-mail address | pyml@ml.tu-berlin.de |
| Website | https://web.ml.tu-berlin.de/teaching/courses/ |
Learning outcomes
The students have a deep theoretical understanding of Python programming, which they can apply autonomously using standard programming tools such as Jupyter notebooks and a debugger.
Specifically, Students understand general principles underlying Python programming, e.g., Python syntax and advanced paradigms of functional and object-oriented programming. They can apply these skills to advanced data science and machine learning tasks. This includes efficiently and compactly implementing complex tensor operations and implementing visualization methods.
Specifically, Students understand general principles underlying Python programming, e.g., Python syntax and advanced paradigms of functional and object-oriented programming. They can apply these skills to advanced data science and machine learning tasks. This includes efficiently and compactly implementing complex tensor operations and implementing visualization methods.
Content
The module briefly motivates Python by contrasting it to other programming paradigms (e.g., Julia or C). The module introduces Python-specific programming principles, e.g., duck typing or idiomatic constructs (“Pythonic” syntax) such as generator comprehensions. Students implement visualization code primarily using the framework Matplotlib.
The module teaches the application of the learned programming skills to machine learning (ML) problems, which includes conceptually understanding exemplary ML tasks. For example, the module teaches the implementation of complex tensor operations (often relevant in machine learning) using acceleration frameworks (such as NumPy or PyTorch) that ensure compact syntax and efficient computation.
The module teaches the use of programming environments such as Jupyter notebooks and tools like debuggers, which can also be used during the exam (assuming a digital exam is feasible in a given semester).
The module teaches the application of the learned programming skills to machine learning (ML) problems, which includes conceptually understanding exemplary ML tasks. For example, the module teaches the implementation of complex tensor operations (often relevant in machine learning) using acceleration frameworks (such as NumPy or PyTorch) that ensure compact syntax and efficient computation.
The module teaches the use of programming environments such as Jupyter notebooks and tools like debuggers, which can also be used during the exam (assuming a digital exam is feasible in a given semester).
Module components
Compulsory area
The following courses are mandatory for this module:
| Courses | Type | Number | Frequency | Language | Hours per week | Course catalog |
|---|---|---|---|---|---|---|
| Python for Machine Learning | Integrated course | Winter and summer semester | [en] | 4 | WS 2026/27 (2) ISIS |
Courses in the course catalog
Courses created from the teaching units of this module.
Winter semester 2026/27 (2)
Python for Machine Learning (Integrated course) 2
Workload and credit points
Python for Machine Learning (Integrated course)
| Workload description | Multiplier | Hours | Total |
|---|---|---|---|
| Tutorials | 9 | 2 h | 18 h |
| Preparation for the exam | 1 | 45 h | 45 h |
| Lectures | 9 | 2 h | 18 h |
| Preparation/follow-up work for the tutorials (including homework) | 9 | 8 h | 72 h |
| Preparation/follow-up work for the lectures | 9 | 3 h | 27 h |
| 180 h | |||
The workload of the module adds up to 180 hours. The module therefore comprises 6 credit points.
Description of teaching and learning methods
The module exhibits a hybrid format: On the one hand, the course instructors teach some of the content in person in a guided format. On the other hand, students learn to program autonomously and individually while establishing a sound theoretical understanding of programming paradigms and relevant machine-learning problems.
Specifically, the module contains approximately nine lectures and the equivalent of nine tutorial sessions. Some weeks contain homework exercises. These must be done individually, although the tutorials provide help if necessary, and possible solutions are discussed after the homework deadline.
Specifically, the module contains approximately nine lectures and the equivalent of nine tutorial sessions. Some weeks contain homework exercises. These must be done individually, although the tutorials provide help if necessary, and possible solutions are discussed after the homework deadline.
Requirements for participation and examination
Desirable prerequisites for participation in the courses:
Students should know basic programming principles in Python or any language of equal or lower abstraction (e.g., not R). We recommend installing a virtual Python environment before the course starts. Note that this can require substantial time on operating systems like Windows. Students should know basic mathematical principles, e.g., knowledge of linear algebra helps understand the implementation of complex tensor operations.
Mandatory requirements for the module examination registration:
This module has no examination requirements.
Completion of the module
| Grading | Graded |
|---|---|
| Exam format | Written exam |
| Language | English |
| Duration/Extent | 120 minutes |
Duration of the module
The following number of semesters is estimated for taking and completing the module: 1 semester(s).
This module can be started in the following semesters: Winter and summer semester.
Maximum number of participants
The maximum capacity of participants is 180.
Registration procedures
The module's website (to be found at the website of the Machine Learning Group at TU Berlin) describes the admission formalities for a given semester in detail. Students are encouraged to inform themselves about the admission procedure on time (ideally before the semester starts). Otherwise, they may be unable to participate in the module when missing important admission deadlines.
Students can only participate in this module if they have not(!) passed the elective “Python Programming for Machine Learning (PyML)” (3 CP). The PyML elective was discontinued after the winter term 2023/2024.
The maximum number of participants is 180. If circumstances change, e.g., concerning the capacity of the digital examination facilities, the module’s capacity limit may be adjusted. A change in the number of participants for a given semester (if any) will be published on the module's website.
Students can only participate in this module if they have not(!) passed the elective “Python Programming for Machine Learning (PyML)” (3 CP). The PyML elective was discontinued after the winter term 2023/2024.
The maximum number of participants is 180. If circumstances change, e.g., concerning the capacity of the digital examination facilities, the module’s capacity limit may be adjusted. A change in the number of participants for a given semester (if any) will be published on the module's website.
Recommended reading, lecture notes
Lecture notes
unavailable
Electronic lecture notes
available
Recommended literature
No recommended literature given
Assigned programs
This module version is used in the following programs:
| Program / program version | Semester(s) | Curriculum component |
|---|---|---|
| Computer Engineering Computer Engineering (M. Sc.) - StuPO 2015 | SS 2025 | Wahlpflicht Studiengebiete Fak. IV › Kognitive Systeme / Cognitive Systems |
| WS 2025/26 | Wahlpflicht Studiengebiet B › Kognitive Systeme / Cognitive Systems | |
| Computer Science (Informatik) Computer Science (Informatik) (M. Sc.) - StuPO 2015 | SS 2025 | Wahlpflicht Studiengebiete Fak. IV › Kognitive Systeme / Cognitive Systems |
| WS 2025/26 | Studiengebiete › Data and Software Engineering / Data and Software Engineering | |
| Digital Media and Technology Digital Media and Technology (M. Sc.) - StuPO 2017 | SS 2025 | Wahlpflichtbereich › Technische Profilbereiche (A) › Profilbereich Mensch-Maschine-Interaktion |
| WS 2025/26 | Wahlpflichtbereich › Technische Profilbereiche (A) › Profilbereich Mensch-Maschine-Interaktion | |
| Electrical Engineering Electrical Engineering (M. Sc.) - StuPO 2015 | SS 2025 | Wahlpflicht Studiengebiete Fak. IV › Kognitive Systeme / Cognitive Systems |
| WS 2025/26 | Wahlpflicht Studiengebiete Fak. IV › Data and Software Engineering / Data and Software Engineering | |
| Engineering Science StuPO 2007 (19.12.2007) | SS 2025 | 2.1 Numerik und Simulation › 2.1b Ergänzungsbereich |
| WS 2025/26 | 2.1 Numerik und Simulation › 2.1b Ergänzungsbereich | |
| Engineering Science StuPO 2020 | SS 2025 | 2.1 Numerik und Simulation › 2.1b Ergänzungsbereich |
| WS 2025/26 | 2.1 Numerik und Simulation › 2.1b Ergänzungsbereich | |
| ICT Innovation ICT Innovation (M. Sc.) - StuPO 2020 | SS 2025 | Studienrichtungen › Major: Embedded Systems › Exit year: Embedded Systems › Exit year Electives: Embedded Systems |
| WS 2025/26 | Studienrichtungen › Major: Embedded Systems › Exit year: Embedded Systems › Exit year Electives: Embedded Systems | |
| Information Systems Management (Wirtschaftsinformatik) Information Systems Management (Wirtschaftsinformatik) (M. Sc.) - StuPO 2017 | SS 2025 | Wahlpflichtbereich › Fachstudium Wirtschaftsinformatik › Informationssysteme / Information Systems |
| WS 2025/26 | Wahlpflichtbereich › Fachstudium Wirtschaftsinformatik › Informationssysteme / Information Systems | |
| Media Technology Media Technology (M. Sc.) - StuPO 2022 | SS 2025 | Wahlpflicht weitere Profibereiche › weiterer Profilbereich Data Science |
| WS 2025/26 | Wahlpflicht weitere Profibereiche › weiterer Profilbereich Data Science |
Miscellaneous
If feasible, the exam is digital, where students write code in Jupyter notebooks and have access to a Python interpreter, documentation (via Python's standard library), and a simple Python debugger. In this case, the exam takes place in person, i.e., it is not an online exam. However, the feasibility of the digital exam concept cannot be guaranteed and is constrained by technical resources and other resources. The fallback solution is either a written exam (with pen and paper) or a hybrid solution (e.g., no access to a Python interpreter but submitting answers via ISIS).
Students can bring an A4 sheet to the exam. They should check the course website for details on what this A4 sheet can entail.
We recommend reading the course website on ISIS for additional information.
Students can bring an A4 sheet to the exam. They should check the course website for details on what this A4 sheet can entail.
We recommend reading the course website on ISIS for additional information.