Created
June 15, 2018 06:21
-
-
Save Tathagatd96/9fabda40483a8d7cbaebebbc7ed495e4 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
#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