Skip to content

lowoncuties/VSB-FEI-Fundamentals-of-Machine-Learning-Exercises

 
 

Repository files navigation

Fundamentals of Machine Learning

The course is held at FEI, VSB-TU Ostrava

Course information may be found here.

You can find more details about the course at Homel from Radek Svoboda.

Feel free to contact me ([email protected]) if you have any questions or want to discuss any topic from the course 😊

All authorship is mentioned where possible.

Big thanks to Radek Svoboda for all the materials.

📚 Study materials

Materials that should help you with the basic concepts from the mathematics and statistics needed by this course.

Jupyter Notebook

Google Colab

Any PR is welcome, whether you find a typo or you have better explanation

📊 Exercises

Exercise 1

The aim of the exercise is to get an overview of the basic capabilities of the Pandas, Matplotlib and Seaborn libraries and be able to setup a Python Virtual Enviroment (venv)

Jupyter Notebook

Google Colab

Exercise 2

The aim of the exercise is to learn basic techniques for visualization creation and interpretation using Matplotlib and Seaborn libraries.

Jupyter Notebook

Google Colab

Exercise 3

Goal of the excercise is to learn about more advanced vizualization techniques using Matplotlib and Seaborn libraries.

Jupyter Notebook

Google Colab

Exercise 4

Goal of the excercise is to learn how to use K-means implementation in the Scikit-learn library to perform clustering and subsequent cluster analysis on a Titanic dataset.

Jupyter Notebook

Google Colab

Exercise 5

We will learn how to use another clustering algorithm - Hierarchical (or Agglomerative) clustering. The base principles and important hyper-parameters will be explained.

Jupyter Notebook

Google Colab

Exercise 6

The goal of this excercise is to complete the hands-on experience task with similar task description as the first project has.

Jupyter Notebook

Google Colab

Exercise 7

Goal of the excercise is to code selected part of the Decision tree algorithm which is focused on the optimum split part using gini index.

After that the scikit-learn implementation of the Decision tree basic usage will be demonstrated.

Jupyter Notebook

Google Colab

Exercise 8

Goal of the excercise is to learn how to use Scikit-learn library for a classification tasks and evaluate the performance of the proposed models.

Jupyter Notebook

Google Colab

Exercise 9

Goal of this excercise is to complete the hands-on experience of the classification task.

Jupyter Notebook

Google Colab

Exercise 10

Goal of the excercise is to learn how to use Scikit-learn library for a regression tasks employing various linear regression models and moreover evaluate the performance of the proposed models.

Jupyter Notebook

Google Colab

Exercise 11

Goal of the excercise is to learn how to use basic deep learning models in Scikit-learn and Keras.

Jupyter Notebook

Google Colab

Exercise 12

Goal of the excercise is to learn how to save trained models and use selected advanced libraries like Plotly or Optuna.

Jupyter Notebook

Google Colab

Notebooks from the lectures

Credit goes to prof. Ing. Jan Platoš, Ph.D.

Sloths classification

Jupyter Notebook

Google Colab

Diamond price prediction

Jupyter Notebook

Google Colab

💡 Notes

How to create a Python Virtual Enviroment named venv

Create venv

python -m venv venv

OR

python3 -m venv venv

Activate venv

  • Activate venv in Windows
.\venv\Scripts\Activate.ps1
  • Activate venv in Linux/macOS
source venv/bin/activate

Create

Install python packages

  • Navigate to the root folder where the requirements.txt is located
pip install -r requirements.txt 

🚀 Run Jupyter lab

jupyter lab

How to run Jupyter notebook directly in the VSCode

  1. Download Jupyter extension
  2. Follow the How to create a Python Virtual Enviroment
  3. Directly open the fml_xx.ipynb in the VSCode
  4. Enjoy the local experience

Hints for the VSCode

  • You can use same shortcuts as with the JupyteLab or Google Colab
  • Sometimes the jupyter kernel may freeze, you can use the VSCode command to reload window
    • MacOS shift + command + P -> Reload Window
    • Windows/Linux shift + alt + P -> Reload Window
  • You can use the pip install library_name directly in the Jupyter notebook

About

Jupyter notebooks for the Fundamentals of Machine Learning course that is held at FEI, VSB-TU Ostrava

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.8%
  • Python 0.2%