Course detail

Mathematical Software

FSI-0MSAcad. year: 2027/2028

The course provides an introduction to the Python language and its use in applied mathematics and machine learning. Students learn the basics of scripting and creating algorithms using the standard library and libraries for mathematical applications, e.g. NumPy, SciPy, Matplotlib and Pandas, and the machine learning libraries scikit-learn, TensorFlow and PyTorch.

Language of instruction

Czech

Number of ECTS credits

3

Assignment to study programme types

Bachelor's

Mode of study

Not applicable.

Learning outcomes of the course unit

Not applicable.

Entry knowledge

Basic computer skills, basics of programming. Basic knowledge of mathematical analysis, linear algebra, probability and statistics.

Rules for evaluation and completion of the course

The credit is awarded on the basis of active participation in the exercises and a successful defence of the semester project in week 13.

The semester project consists of solving a machine learning task on a chosen dataset. It includes data preparation, checking and pre-processing, deployment and testing of several models, evaluation and comparison of their results, and a justification of the choice of the most suitable model.

At the defence, students present the results of the project and answer questions about their solution. To obtain the credit, the solution must work and students must demonstrate an understanding of their own code.

Attendance at the exercises is compulsory and is checked by the teacher at each exercise. Students may miss at most 2 exercises per semester. The way missed classes are compensated is determined by the teacher.

Aims

The aim of the course is to teach students to use the Python programming language and its libraries to solve problems of applied mathematics and machine learning.

After completing the course, the student will be able to:

– write and debug a Python script using basic data types, control flow, functions and modules,

– use the NumPy and SciPy libraries for matrix computations and present the results in plots using Matplotlib,

– train and evaluate classical machine learning models (k-NN, decision trees, SVM, random forest) in scikit-learn,

– build and train a neural network, including a convolutional network and an autoencoder, in TensorFlow or PyTorch,

– describe the principles of the transformer architecture and reinforcement learning,

– prepare and pre-process a dataset using Pandas, compare several models on it using suitable metrics, and defend the chosen solution.

Study aids

Not applicable.

Prerequisites and corequisites

Not applicable.

Basic literature

GÉRON, A. Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow. 3rd ed. O'Reilly Media, 2022. (EN)
JOHANSSON, R. Numerical Python: Scientific Computing and Data Science Applications with Numpy, SciPyand Matplotlib. 2nd ed. Berkeley: Apress, 2019. (EN)

Recommended reading

LUTZ, M. Learning Python. 5th ed. Sebastopol: O'Reilly Media, 2013. (EN)
PILGRIM, M. Ponořme se do Pythonu 3. Praha: CZ.NIC, 2010. (CS)
Python Software Foundation. The Python Tutorial [online]. Dostupné z: https://docs.python.org/3/tutorial/ (EN)
RASCHKA, S., LIU, Y., MIRJALILI, V. Machine Learning with PyTorch and Scikit-Learn. Birmingham: Packt, 2022. (EN)

Classification of course in study plans

  • Programme B-MAI-P Bachelor's 2 year of study, winter semester, compulsory
  • Programme BIT Bachelor's 1 year of study, winter semester, elective
  • Programme BIT Bachelor's 1 year of study, winter semester, elective

Type of course unit

 

Computer-assisted exercise

26 hours, compulsory

Teacher / Lecturer

Syllabus

1) Introduction to Python. Setting up the programming environment.
2) Working with Python – data types, control flow.
3) Working with Python – functions and procedures, modules.
4) Working with libraries, introduction to selected libraries (NumPy, SciPy, Pandas).
5) Matrix algebra (NumPy, SciPy).
6) Working with functions, plotting (Matplotlib).
7) Introduction to machine learning, the scikit-learn library – k-nearest neighbours (k-NN).
8) The scikit-learn library – decision trees, SVM, random forest.
9) Neural networks, training, first model (TensorFlow, PyTorch).
10) Convolutional neural networks.
11) Autoencoders.
12) Transformers, reinforcement learning.
13) Project defences.