Skip to content

Instantly share code, notes, and snippets.

@analyticsindiamagazine
Created November 27, 2019 05:54
Show Gist options
  • Save analyticsindiamagazine/686e105007af9e11d2604ff3cd3a72e2 to your computer and use it in GitHub Desktop.
Save analyticsindiamagazine/686e105007af9e11d2604ff3cd3a72e2 to your computer and use it in GitHub Desktop.
# 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