Create_cnn metric error

Hey all,

I am having an issue when I run create_cnn:

learn = create_cnn(data, model, metrics=accuracy, model_dir=WORK_DIR)

TypeError Traceback (most recent call last)
in
----> 1 learn = create_cnn(data, model, metrics=accuracy, model_dir=WORK_DIR)

TypeError: create_cnn() got an unexpected keyword argument ‘metrics’


I have imported metrics so I dont know what the issue is.
fastai version ‘1.0.47.dev0’

I believe that they changed create_cnn to cnn_learner. Try it.

1 Like

Yes, and don’t forget to follow the developer chat topic for all the breaking changes.

Thank yoooou!!