Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/9fabda40483a8d7cbaebebbc7ed495e4 to your computer and use it in GitHub Desktop.
Save Tathagatd96/9fabda40483a8d7cbaebebbc7ed495e4 to your computer and use it in GitHub Desktop.
#Now to predict values we do the following
pred_input_func=tf.estimator.inputs.pandas_input_fn(x=X_eval,y=y_eval,batch_size=10,num_epochs=1,shuffle=False)
preds=model.predict(input_fn=pred_input_func)
predictions=list(preds)
final_pred=[]
for pred in predictions:
final_pred.append(pred["predictions"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment