introtodeeplearning icon indicating copy to clipboard operation
introtodeeplearning copied to clipboard

problem of mdl.lab3.plot_accuracy_vs_risk

Open Spartanzhao opened this issue 2 years ago • 0 comments

When I running _ = mdl.lab3.plot_accuracy_vs_risk(bias_images, sorted_bias, sorted_bias_preds, "Bias vs. Accuracy") I got these error

AttributeError Traceback (most recent call last) Cell In[81], line 12 10 plt.xlabel("Density (Representation)") 11 plt.ylabel("Accuracy") ---> 12 _ = mdl.lab3.plot_accuracy_vs_risk(bias_images, sorted_bias, sorted_bias_preds, "Bias vs. Accuracy")

AttributeError: module 'mitdeeplearning.lab3' has no attribute 'plot_accuracy_vs_risk'

When I run: from mitdeeplearning import lab3 dir(lab3)

I got this:

['DatasetLoader', 'IM_SHAPE', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'spec', 'cv2', 'get_test_faces', 'glob', 'h5py', 'np', 'os', 'plot_image_prediction', 'plot_k', 'plot_percentile', 'plot_value_prediction', 'plt', 'sys', 'tf', 'time'] There is no such function called plot_accuracy_vs_risk, Could you solve this issue? I am using MAC M1, python 3.10

Spartanzhao avatar May 11 '23 13:05 Spartanzhao