-
Notifications
You must be signed in to change notification settings - Fork 169
Description
Hello,
Before getting into my question, just wanted to say I really enjoyed reading the paper and also exploring the codebase. Many thanks for deeplift!
I've been trying to use deeplift with cifar10 but I've came across a problem:
the model and cifar10 dataset I've been using: https://machinelearningmastery.com/object-recognition-convolutional-neural-networks-keras-deep-learning-library/
I save the trained model with the command below:
model.save('my_cifar_model.h5', save_format='h5')
when I run this command everything seems fine:
import keras saved_model_file = "my_cifar_model.h5" model = keras.models.load_model(saved_model_file) model.summary()
However when I try to create a deeplift reveal cancel model:
`import deeplift
from deeplift.layers import NonlinearMxtsMode
from deeplift.conversion import kerasapi_conversion as kc
revealcancel_model = kc.convert_model_from_saved_files(
h5_file=saved_model_file,
nonlinear_mxts_mode=NonlinearMxtsMode.RevealCancel)
`
I get this error: TypeError: can only concatenate str (not "KeysViewHDF5") to str
What do you think I can do to solve it? Are there any deeplift examples with cifar10?
Thanks!