You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this error (at convert_model_from_saved_files function) and I couldn't find any way to resolve it. Could you please help me with this?
Here is the error:
Traceback (most recent call last):
File "/Users/amir/PycharmProjects/Lab/LSTM-DR/LSTM-drug-resistance/pipe_line_gene.py", line 31, in
train()
File "/Users/amir/PycharmProjects/Lab/LSTM-DR/LSTM-drug-resistance/pipe_line_gene.py", line 14, in train
model_gene_based.run_bayesian(df_train, labels)
File "/Users/amir/PycharmProjects/Lab/LSTM-DR/LSTM-drug-resistance/models/model_gene_based.py", line 578, in run_bayesian
Bayesian_optimizer.BO(X_train, X_test, X_val, y_train, y_test, y_val, limited, portion)
File "/Users/amir/PycharmProjects/Lab/LSTM-DR/LSTM-drug-resistance/models/Bayesian_optimizer.py", line 409, in BO
fit_with_partial(dropout2_rate=0.2, dense_1_neurons_x128=1, dense_2_neurons_x128=1, dense_3_neurons_x128=1,
File "/Users/amir/PycharmProjects/Lab/LSTM-DR/LSTM-drug-resistance/models/Bayesian_optimizer.py", line 191, in fit_with
return run_one_fold(model)
File "/Users/amir/PycharmProjects/Lab/LSTM-DR/LSTM-drug-resistance/models/Bayesian_optimizer.py", line 304, in run_one_fold
kc.convert_model_from_saved_files(
File "/Users/amir/venv/p3/lib/python3.8/site-packages/deeplift/conversion/kerasapi_conversion.py", line 414, in convert_model_from_saved_files
return model_conversion_function(model_config=model_config, **kwargs)
File "/Users/amir/venv/p3/lib/python3.8/site-packages/deeplift/conversion/kerasapi_conversion.py", line 459, in convert_sequential_model
batch_input_shape = model_config[0]['config'][KerasKeys.batch_input_shape]
KeyError: 'batch_input_shape'
The text was updated successfully, but these errors were encountered:
Hi,
I am using Keras (V 2.2.4) and my model is LRCN (a combination of CNN + LSTM).
You can see my code here:
https://github.com/AmirHoseinSafari/LRCN-drug-resistance/blob/master/models/Bayesian_optimizer.py
I am trying to run it this way:
My model is something like:
I am getting this error (at convert_model_from_saved_files function) and I couldn't find any way to resolve it. Could you please help me with this?
Here is the error:
The text was updated successfully, but these errors were encountered: