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

Elastoplasticity - type error in training section #39

Open
acarkocabicak opened this issue Jun 3, 2023 · 1 comment
Open

Elastoplasticity - type error in training section #39

acarkocabicak opened this issue Jun 3, 2023 · 1 comment

Comments

@acarkocabicak
Copy link

Firstly, thank you for sharing the comprehensive work on PINN. The type error occurs when executing the following scripts in the training section of the Elastoplasticity model:

fig, ax= plt.subplots(1,2, figsize=(8, 3))
loss_val = history.history["loss"]/history.history["loss"][0]
ax[0].semilogy(loss_val)
ax[0].set_xlabel('epochs')
ax[0].set_ylabel('$\\mathcal{L}/\\mathcal{L}_0$')
ax[1].semilogy(np.linspace(0, t, loss_val.size), loss_val)
ax[1].set_xlabel('time (s)')
plt.show()

TypeError: unsupported operand type(s) for /: 'list' and 'float'

I am sharing the screenshot of the error below:

image

I hope you can help me out with this error.
Thanks for your time and consideration.

@HumbertHumbert7
Copy link

Hi acarkocabicak, did you solved it, because I'm having some issues also with the plots

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