TensorFlow in 1 Day: Make your own Neural Network by Rungta Krishna

TensorFlow in 1 Day: Make your own Neural Network by Rungta Krishna

Author:Rungta, Krishna [Rungta, Krishna]
Language: eng
Format: azw3
Published: 2018-09-03T16:00:00+00:00


This function parses the csv file with the method tf.decode_csv and declares the features and the label. The features can be declared as a dictionary or a tuple. You use the dictionary method because it is more convenient.Code explanation

tf.decode_csv(value, record_defaults= RECORDS_ALL): the method decode_csv uses the output of the TextLineDataset to read the csv file. record_defaults instructs TensorFlow about the columns type.

dict(zip(_CSV_COLUMNS, columns)): Populate the dictionary with all the columns extracted during this data processing

features.pop('median_house_value'): Exclude the target variable from the feature variable and create a label variable



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.