改行区切りの JSON ファイルに予測入力をエクスポートします。 import json with open('prediction_input.json', 'w') as json_file: for row in prediction_input.values.tolist(): json.dump(row, json_file) json_file.write('\n') Python インタプリタを終了します(exit())。シェルから、prediction_input.json を調べます。 cat prediction_input.json [0.9012127751273994, 1.0, 1.525541514460902, 2.0, 9.0, 0.0, 4.0, -0.14479173735784842, -0.21713186390175285, -0.4375438
![スタートガイド: Keras によるトレーニングと予測 | AI Platform | Google Cloud](https://cdn-ak-scissors.b.st-hatena.com/image/square/c89db55604b10609fc306beb52444f728fbdbdb6/height=288;version=1;width=512/https%3A%2F%2Fcloud.google.com%2F_static%2Fcloud%2Fimages%2Fsocial-icon-google-cloud-1200-630.png%3Fhl%3Dja)