- Python Machine Learning Cookbook(Second Edition)
- Giuseppe Ciaburro Prateek Joshi
- 93字
- 2021-06-24 15:41:04
Getting ready
In this recipe, we will introduce the TensorFlow framework, using a simple neural network to classify the iris species. We will use the iris dataset, which has 50 samples from the following species:
- Iris setosa
- Iris virginica
- Iris versicolor
Four features are measured from each sample, namely the length and the width of the sepals and petals, in centimeters.
The following variables are contained:
- Sepal length in cm
- Sepal width in cm
- Petal length in cm
- Petal width in cm
- Class: setosa, versicolor, or virginica