-
Notifications
You must be signed in to change notification settings - Fork 36
Custom loss function without fwi_objective #230
Copy link
Copy link
Open
Description
Hi,
As far as I know fwi_objective doesn't support muting yet #213.
Thus I do the FWI without fwi_objective.
How to use custom loss function in that case?
Or where in JUDI source code the operator - is defined for residual that I use for now (d0 - Ml_freq[indsrc]*d_obs[indsrc]) so I can override it?
@everywhere envelope(x, y) = sum(abs2.((x - y) .+ 1im .* H(x - y)))
@everywhere denvelope(x, y) = Zygote.gradient(xs->envelope(xs, y), x)[1]
@everywhere myloss(x, y) = (envelope(x, y), denvelope(x, y))
d0 = F(model0)[indsrc]*(Mr_freq[indsrc]*q[indsrc])
r = Ml_tur[indsrc] * (d0 - Ml_freq[indsrc]*d_obs[indsrc])Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels