How to Install scikit-learn
For more information about concepts covered in this lesson, you can check out:
00:00 Installing scikit-learn. In this course, you’ll see version 0.24.2 of scikit-learn running on Python 3.9. Whenever you’re working with a new Python package, it’s considered good practice to work in a virtual environment, and if you need to know more, check out the course which is seen onscreen now.
00:24
scikit-learn has many packages for data science and machine learning, but for this course, you will focus on the model_selection
package, specifically on the function train_test_split()
.
00:36
You can install scikit-learn with pip
as seen onscreen.
00:48
If you use Anaconda, then you probably already have scikit-learn installed. However, if you want to use a fresh environment, ensure that you have the specified version or use Miniconda, and then you can install scikit-learn from Anaconda Cloud, with conda install
as seen onscreen.
01:20 You’ll also need NumPy, but you won’t have to install it separately because it should be installed alongside scikit-learn. If you want to refresh your NumPy knowledge, then take a look at the official documentation or better still, check out this Real Python course.
01:38
Now that you’re all set up to start using scikit-learn’s train_test_split()
, that’s what you’re going to see in the next section of the course.
Become a Member to join the conversation.