Skip to content

Using Scikit-learn

Scikit-learn contains powerful set of fundamental machine learning and data processing functionalities.

Documentation

The scikit-learn documentation can be found here.

Installation

Conda

conda install -c conda-forge scikit-learn

Pip

pip install -U scikit-learn

Importing

You tend to import specific functionality from sklearn like this:

from sklearn.preprocessing import StandardScaler

Use with Pandas

It is preferable to convert data from a Pandas DataFrame into numpy before use with sklearn, for example:

X = df.to_numpy()

Scaling data

TBC

Clustering

TBC

Dimensionality Reduction/Embedding

TBC

Regression

TBC

Classification

TBC