Which scikit learn version will this mooc use?

Hello everybody,
First of all thank you for this opportunity.
I would like to know if the scikit-learn version this mooc will use is >= 1.0.0 ?
Best regards,

4 Likes

Hello and welcome!

The version hosted in FUN is the latest release, i.e. scikit-learn-1.0.2. If you are running the notebooks locally, we recommend using any version >= 1.0.0.

Thanks for joining us!

2 Likes

For information, you can introspect the versions of the most important libraries with:

import sklearn
sklearn.show_versions()

On the current jupyter hub installation:

System:
    python: 3.9.10 | packaged by conda-forge | (main, Feb  1 2022, 21:24:11)  [GCC 9.4.0]
executable: /opt/conda/bin/python
   machine: Linux-4.15.0-166-generic-x86_64-with-glibc2.31

Python dependencies:
          pip: 22.0.3
   setuptools: 59.8.0
      sklearn: 1.0.2
        numpy: 1.21.5
        scipy: 1.8.0
       Cython: 0.29.27
       pandas: 1.4.1
   matplotlib: 3.5.1
       joblib: 1.1.0
threadpoolctl: 3.1.0

Built with OpenMP: True
8 Likes

1.0.0

How can I get the decision boundary function locally? I am familiar with basic git usage and can compile things if needed. Can’t wait till that’s released. Thank you! -Pritam

I think the simplest thing to do if you want to run notebooks locally is to follow the local installation instructions mentioned in the MOOC’s github repo.

You can install the development version of scikit-learn:

if you wish.

Note however that the utility to plot the decision function is only useful for educational purpose on toy datasets with only 2 input features.

In real life settings, machine learning models are typically trained on 10, 100 or even 1000 of features and plotting the decision function is not possible.