Skip to content

AHartmaier/ML-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning Tutorial

Numerical examples for regression and classification of data

Machine learning methods are trained with different data sets to work either as regression functions or to find the delimiter lines between classes of data points with different characteristics. Furthermore, it is demonstrated how a surrogate model can be built by supervised learning.

Additionally, a full chain of tutorials has been added to demosntrate (i) how the anisotropic elastic properties of composite material can be determined by finite element analysis, (ii) how consistent data sets on the microstructural features (volume fraction and geometrical arrangement of filler phase) and the resulting elastic properties can be generated, and (iii) how different machine learning algorithms can be trained on such data.

Jupyter notebooks on Binder

The tutorial is conveniently used with Jupyter notebooks that can be directly accessed with Binder:
Binder

https://mybinder.org/v2/gh/AHartmaier/ML-Tutorial.git

Installation

To use the tutorial on your own hardware, you need an Anaconda or Miniconda installation with a recent Python version. Then follow those steps:

  1. Download the contents of the GitHub repository, e.g. with
$ git clone https://github.com/AHartmaier/ML-Tutorial.git

or download and unpack the ZIP archive directly from GitHub.

  1. Change the working directory
$ cd ML-Tutorial
  1. Create a conda environment
$ conda env create -f environment.yml
  1. Activate the environment
$ conda activate ml-tutorial
  1. Start JupyterLab (or juypter notebook)
$ jupyter lab index.ipynb

De-Installation

If you want to remove the tutorial from your hardware, you need to follow those steps:

  1. Deactivate the conda environment
$ conda deactivate
  1. Remove the environment
$ conda env remove -n ml-tutorial
  1. Delete the folder ML-Tutorial
$ cd ..; rm -rf ML-Tutorial

Dependencies

The tutorial uses the following packages, which are automatically installed in the environment when following the instruction above:

  • NumPy for array handling and mathematical operations
  • scikit-learn for machine learning algorithms
  • MatPlotLib for graphical output
  • ipympl defining widgets for user interaction
  • pylabfea for finite element analysis (FEA)

License

The software in this tutorial comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the conditions of the GNU General Public License (GPLv3)

The contents of notebooks and documents are published under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)

About

A tutorial on machine learning regression and classification.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published