Closed cedarsnow closed 2 years ago
Are you able to run the input model by itself outside of Talos? Basically, just replace all the references to params
with the actual parameter values, and then try running it directly in Tensorflow and see what happens. Do you get the same error?
Here are some related issues that might be useful:
Here is also an example notebook for recovering best model when other methods fail.
Are you able to run the input model by itself outside of Talos? Basically, just replace all the references to
params
with the actual parameter values, and then try running it directly in Tensorflow and see what happens. Do you get the same error?
Running, saving and loading the model with tf.keras are working.
This is now handled in #581 for the main part, and the Evaluate()
part will be handled in #582. Closing here.
Thank you very much for reporting a bug on Talos. Before you do, please go through the below checklist carefully and make sure to prepare your bug report in a way that facilitates effective handling of the matter.
1) Confirm the below
2) Include the output of:
talos.__version__ 1.0.2
3) Explain clearly what you expect to happen
I'm trying to use the model from https://github.com/GregMurray30/MultiTouchAttribution with Talos.
I expect talos.Scan() to work with my model and talos.Predict() can return me the prediction using Colab.
The model I'm using needs a custom object, here is how it is defined:
Then I re-built the model following Talos' guide:
After this, I defined the param dictionary and called Scan() and Predict().
4) Explain what actually happened
With the code above, talos.Predict() returned me an error:
I've tried to use register the custom object and use
'with tf.keras.utils.custom_object_scope(custom_objects)'
but got another error:
Another error related: if I define the get_config() method in another way in MyAttention:
Talos.Scan() cannot complete the scaning prcess and shows:
If you want to run the code, you have the notebook here. https://colab.research.google.com/drive/13J0aLZwQ6cbT9ObwqMNa5Q4cb8OBGifP?usp=sharing