Installing scikit-learn on Ubuntu 18.04 LTS

Installing scikit-learn on Ubuntu is easy and straightforward. You can install it either using apt-get install or pip.

Here is the command to install scikit-learn using apt-get install:

$ sudo apt-get install python-sklearn

We can install it using pip with the following command:

$ sudo pip install scikit-learn

After installing scikit-learn, we can test the installation with the following commands in Python Terminal:

>>> import sklearn 
>>> sklearn.__version__ 
'0.19.1' 

Congratulations, you have successfully set up scikit-learn! The next section will introduce you to SVM and its application in robotics.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset