Search⌘ K
AI Features

Integer Features

Explore how to transform integer features from a pandas DataFrame into TensorFlow Example objects. This lesson guides you through creating Int64List TensorFlow Feature objects for integer data, improving the efficiency of your model's input pipeline using real retail sales data.

Chapter Goals:

  • Add the integer features of a DataFrame’s row to a feature dictionary

A. Using Example objects

Each row of the final pandas DataFrame from the Data Analysis Lab contains the feature data for one data observation, i.e. the feature data for one store’s sales in a particular week. To optimize the input pipeline, we want to convert each DataFrame row into a TensorFlow Example object. By using Example ...