Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

How to train a machine learning model?

The Machine Learning library scikit-learn contains methods for:

  • Supervised Learning (regression and classification, e.g. logistic regression, Support Vector Machines, Random Forests)
  • Unsupervised Learning (clustering, PCA)
  • Preprocessing (scaling, text vectorization)
  • Model validation

Install it with:

pip install scikit-learn

Here is an example training a straightforward model:

.. literalinclude:: example_sklearn.py

.. seealso::

   - `scikit-learn documentation <https://scikit-learn.org>`__
   - `Machine Learning Tutorial <https://www.academis.eu/machine_learning/>`__