Skip to content

problem of mdl.lab3.plot_accuracy_vs_risk #128

Open
@Spartanzhao

Description

@Spartanzhao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions