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