Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lab3/Part1_IntroductionCapsa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,11 @@
"### Generate and visualize bias scores for data in test set ###\n",
"\n",
"# Call the risk-aware model to generate scores\n",
"predictions, bias = bias_wrapped_dense_NN(x_test)\n",
"predictions = bias_wrapped_dense_NN(x_test)\n",
"\n",
"# Visualize the relationship between the input data x and the bias\n",
"fig, ax = plt.subplots(2, 1, figsize=(8,6))\n",
"ax[0].plot(x_test, bias, label='bias')\n",
"ax[0].plot(x_test, predictions.bias, label='bias')\n",
"ax[0].set_ylabel('Estimated Bias')\n",
"ax[0].legend()\n",
"\n",
Expand Down