Closed lbertge closed 2 years ago
Hi Albert, you can access the loss history (as well as the history of other custom metrics) via
print(solver.metrics_history['train_loss'])
print(solver.metrics_history['valid_loss'])
# etc.
Thank you!
(this issue is specifically directed for the ODE solver, but probably can be extended to the other solvers in the package):
The currently-deprecated function
solve
used to return both the solution and the loss history, like so:Following the API's suggestion, I switched to using the the
Solver1D
class, which now is formatted as such:I can access the solution function via
solver.get_solution()
, but is there an analogous way to access the loss history? I attempted to look through the documentation without much luck. My thinking is eitherMonitor
instanceSolver1D
instance (perhaps there's a way viasolver.get_internals()
)?