Skip to content

Specify loss function directly for NeuralPDE? #496

@raminammour

Description

@raminammour

(Originally posted on discourse)

In NeuralPDE you normally define the PDE ( rhs = lhs) symbolically and the loss function is built internally, loosely \int dvars ||lhs(vars) - rhs(vars)||^2.

Is there a way to specify the objective function symbolically directly? Let’s say you are crazy enough and just want to optimize
\int dvars cos(lhs(vars) + sin(rhs(vars)) . What would be the easiest way to do that?

@ChrisRackauckas directed me to open an issue to maybe add some support/API to that without having to hack too much code.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions