Created
November 27, 2019 05:54
-
-
Save analyticsindiamagazine/686e105007af9e11d2604ff3cd3a72e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert dataset to tf.Example protos | |
examples = df_to_examples(df) | |
#Create feature spec for the data | |
feature_spec = create_feature_spec(df, features_and_labels) | |
#Creating input features from training set | |
train_inpf = functools.partial(tfexamples_input_fn, examples, feature_spec, label_column) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment