Most of you will already be familiar with Pandas and its usefulness in handling large dataset files. TensorFlow also offers methods to read from the files. In the first chapter, we went through the recipe for reading from files in TensorFlow; in this recipe, we will focus on how to read from CSV files and preprocess the data before training.
Reading from CSV files and preprocessing data
Getting ready
We will consider the Boston housing price dataset (http://lib.stat.cmu.edu/datasets/boston) collected by Harrison and Rubinfield in 1978. The dataset contains 506 sample cases. Each house is assigned 14 attributes:
- CRIM: per capita crime rate by town
- ZN: Proportion of residential land zoned for lots over 25,000 sq.ft
- INDUS: Proportion...