Python Machine Learning: Machine Learning and Deep Learning with Python, scikit-learn and Tensorflow (Step-by-Step Tutorial For Beginners) by Samuel Burns

Python Machine Learning: Machine Learning and Deep Learning with Python, scikit-learn and Tensorflow (Step-by-Step Tutorial For Beginners) by Samuel Burns

Author:Samuel Burns
Language: eng
Format: azw3, epub
Published: 2018-11-07T16:00:00+00:00


This shows that the data was loaded successfully.

Preprocessing the Data

The dataset has 5 columns, and our goal is to predict the fifth column, that is, Class. Let us subdivide the dataset into attributes and labels:

X = dataset.iloc[:, 0:4]

y = dataset.select_dtypes(include=[object])

The data in the first four columns have been assigned to the variable X. These are the attributes. The data in the fifth column has been assigned to variable y. This forms the label.

You can have a look of how variable y looks like by running the following command:

y.head()



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.