Replies: 1 comment
-
|
https://github.com/lululxvi/deepxde/blob/master/deepxde/losses.py |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-

Need your help! I have a question about this “losses_fn", except in the definition of “outputs_losses”, i cannot find this function. When I want to change the loss function, and using the following: /*code net = dde.maps.DeepONetCartesianProd( [101,30,30,101], [1,30,30,101], "relu", "Glorot normal") model2 =dde.Model(data, net) model2.compile("adam", lr=3e-4, loss=“mse", metrics=["l2 relative error"], ) */ dde.Model.compile(): loss, by my understanding, is just the “loss_fn”(here is just mse) in the “losses_fn", and I cannot find the “losses_fn” in the whole package. My question: could I change this losses_fn? is this the loss function I need to define? Or in the somewhere of the model, where can I change the loss?Beta Was this translation helpful? Give feedback.
All reactions