-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
advection constrain #47
Comments
I'm not on my main computer and cannot check, but I think in DIVAnd you can simply change the intensity of the velocity field. We will try to add a notebook with examples. |
Like multiply the velocity components with a constant? Is there a way to optimize the parameter? |
Yes, this is correct. Increasing the advection constrain, is achieved by scaling it up: scale = 2.
DIVAndrun(mask,(pm,pn),(xi,yi),(x,y),f,len,epsilon2; velocity = (scale * u,scale * v)) |
There is no tool (currently) in DIVAnd.jl to optimize this parameter. But one can do this with cross-validation by calling DIVAnd with different values of The important (and somewhat difficult) think is the choice of the cross-validation dataset. Ideally you do want to have it independent from the dataset that you are using for the analysis (for example by excluding whole cruises) |
If you are brave and you do not have a sufficiently large data set from which to set aside a validation set, you can try to understand how DIVAnd_cv works and adapt it to optimize the "scale" value; but the method(s) rely on quite some hypothesis which are difficult to control and you might end up tuning the parameter by "hand". |
Understood. I will do some tests. Thanks! |
More questions about the
|
|
Thanks for answering these questions. It would be nice if those things are in the documentations. |
Maybe we still need some advice on how to roughly estimate the scale for velocities, or in other words how to estimate the penalzation importance compared to other penalizations ? |
Yes. That's my question in the other thread. In my case adding advection constrain only increases the root mean square, but it has an (flipped) L shape that until certain point increasing |
For an example how to scale the constraint |
I read from the paper that the degree of advection constrain can be varied using a parameter but I couldn't find how to specifiy/tune this parameter in the documentation/examples.
DIVAndrun
accepts avelocity
argument but not a parameter for this constrain.The text was updated successfully, but these errors were encountered: