Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting search range for a trainable parameter in inverse ODE problem #4

Open
khawlaoue opened this issue Apr 28, 2022 · 1 comment

Comments

@khawlaoue
Copy link

Hello @alirezayazdani1 @lululxvi

I have an inverse ODE problem and I am trying to infer the value of one variable (based on Lorenz inverse problem) but I don´t get the true value of A (I created the synthetic data using the true value of A) , I wanted to set a search range like you did in the glucose-insulin code and using this part of the code :
def get_variable(v): low, up = v * 0.2, v * 1.8 l = (up - low) / 2 return l * tf.tanh(tf.Variable(0, trainable=True, dtype=tf.float32)) + l + low

and using deepxde I get this error message :
File "/usr/local/lib/python3.7/dist-packages/keras/optimizer_v2/utils.py", line 80, in filter_empty_gradients
([v.name for v in vars_with_empty_grads]))
File "/usr/local/lib/python3.7/dist-packages/keras/optimizer_v2/utils.py", line 80, in
([v.name for v in vars_with_empty_grads]))

AttributeError: Tensor.name is meaningless when eager execution is enabled.

Do you know why this error comes up ? Thanks in advance !

@lululxvi
Copy link
Collaborator

Check the updated code at https://github.com/lu-group/sbinn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants