Now let's open up the Jupyter Notebook and get started on our first program, using the methods that we discussed in the previous section:
- The first thing we need to do is load the various libraries that we need. We will also load the iris dataset from the scikit-learn library, using the following code:
- After importing all the required libraries and the dataset, we will go ahead and create an object called iris_obj, which loads the iris dataset into an object. Then, we will go ahead and use the data method to preview the dataset; and this results in the following output:
Notice that it's a NumPy array. This contains ...