Skip to content

Commit f2f3ebd

Browse files
author
Product team
committed
Updating to latest version
1 parent 20f6d9b commit f2f3ebd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

notebooks/Dimensionality_reduction.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@
10671067
}
10681068
],
10691069
"source": [
1070-
"predictions = emulator1.predict(df_eval)\n",
1070+
"predictions = emulator1.predict(df_eval[input_columns])\n",
10711071
"result_df = pd.concat([predictions[0], predictions[1]], axis=1)\n",
10721072
"df_mean1, df_std1 = (\n",
10731073
" result_df.iloc[\n",
@@ -1480,7 +1480,7 @@
14801480
")\n",
14811481
"\n",
14821482
"# Use test data to predict the results\n",
1483-
"predictions2 = emulator2.predict(df_eval)\n",
1483+
"predictions2 = emulator2.predict(df_eval[input_columns])\n",
14841484
"result_df2 = pd.concat([predictions2[0], predictions2[1]], axis=1)\n",
14851485
"df_mean2, df_std2 = (\n",
14861486
" result_df2.iloc[:, : len(output_columns)],\n",

notebooks/Update.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,7 @@
356356
}
357357
],
358358
"source": [
359-
"# process_id = \"<INSERT-PROCESS-ID-HERE>\"\n",
360-
"process_id = \"predict-mini-tundra-fanatic\"\n",
359+
"process_id = \"<INSERT-PROCESS-ID-HERE>\"\n",
361360
"mean, std = emulator.get_process(process_id=process_id,verbose=True)"
362361
]
363362
},

notebooks/bayesian_optimisation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
"new_emulator.train(dataset=dataset, inputs=[\"x\", \"y\"], outputs=[\"z\"], verbose=True)\n",
637637
"\n",
638638
"# Inference on test data\n",
639-
"predictions = new_emulator.predict(df_test)\n",
639+
"predictions = new_emulator.predict(df_test[[\"x\", \"y\"]])\n",
640640
"result_df = pd.concat([predictions[0], predictions[1]], axis=1)\n",
641641
"df_mean, df_stdev = result_df.iloc[:, 0], result_df.iloc[:, 1]\n",
642642
"z_mean, z_stdev = df_mean.values, df_stdev.values"

0 commit comments

Comments
 (0)