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've written code to calculate the error rate, which represents the difference between experimental data and simulation data.
The error rate calculation code is here : error = np.mean((Voltage_exp_interp - Voltage_sim) ** 2)
However, when I use inadequate parameters, the system returns minor or major errors.
The errors that occurred this time are listed below:
At t = 45.9461, , mxstep steps taken before reaching tout.
At t = 45.9461 and h = 1.83507e-17, the corrector convergence failed repeatedly or with |h| = hmin.
Questions:
Can I retrieve the time of the last successful trial (possibly before 45.9461) or the termination time using a built-in function to automatically calculate the error ('Voltage_sim' in the 'error = np.mean((Voltage_exp_interp - Voltage_sim) ** 2)' code)?
Alternatively, is there any good method to obtain the error rate?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm a student learning PyBaMM.
I've written code to calculate the error rate, which represents the difference between experimental data and simulation data.
The error rate calculation code is here : error = np.mean((Voltage_exp_interp - Voltage_sim) ** 2)
However, when I use inadequate parameters, the system returns minor or major errors.
The errors that occurred this time are listed below:
At t = 45.9461, , mxstep steps taken before reaching tout.
At t = 45.9461 and h = 1.83507e-17, the corrector convergence failed repeatedly or with |h| = hmin.
Questions:
Can I retrieve the time of the last successful trial (possibly before 45.9461) or the termination time using a built-in function to automatically calculate the error ('Voltage_sim' in the 'error = np.mean((Voltage_exp_interp - Voltage_sim) ** 2)' code)?
Alternatively, is there any good method to obtain the error rate?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions