Closed minhtriet closed 1 year ago
This happened when I tried to increase r from _pre.podbasis from 3 to 4, 5, 6 etc. Also, if I change the mode from cAH to cAHG, then the integration error doesn't happen at _podbasis=4
A grid search shows some insights, the first column is number of basis, 2nd is regularizer
4 10000.0
4 100000.0
4 1000000.0
4 10000000.0
5 10000.0
5 100000.0
5 1000000.0
5 10000000.0
6 10000.0
6 100000.0
6 1000000.0
6 10000000.0
7 10000.0
With r=7, regularizer=10000.0, integration error happens
7 100000.0
7 1000000.0
7 10000000.0
8 10000.0
8 100000.0
8 1000000.0
8 10000000.0
9 10000.0
9 100000.0
9 1000000.0
9 10000000.0
10 10000.0
10 100000.0
10 1000000.0
10 10000000.0
11 10000.0
11 100000.0
11 1000000.0
11 10000000.0
12 10000.0
12 100000.0
12 1000000.0
12 10000000.0
With r=13, regularizer=10000.0, unterdetermined system
With r=13, regularizer=100000.0, unterdetermined system
With r=13, regularizer=1000000.0, unterdetermined system
With r=13, regularizer=10000000.0, unterdetermined system
With r=14, regularizer=10000.0, unterdetermined system
With r=14, regularizer=100000.0, unterdetermined system
With r=14, regularizer=1000000.0, unterdetermined system
With r=14, regularizer=10000000.0, unterdetermined system
With r=15, regularizer=10000.0, unterdetermined system
With r=15, regularizer=100000.0, unterdetermined system
With r=15, regularizer=1000000.0, unterdetermined system
With r=15, regularizer=10000000.0, unterdetermined system
By setting regularization to very large number (in comparison to machine learning normal range) like 3000 or 4000, I was able to solve the issue, but I do not know why
@minhtriet, the appropriate range for the regularizer is highly problem dependent. In relatively simple problems, we've had success with small regularization values. In others, such as in this paper, we've needed larger regularization values like the ones you are seeing. So this is normal. Hope that helps.
I see. Thank you. Currently I am doing a grid search with equal spacing from e-5 to e6. Perhaps I should change to grid search in log scale. Do you know of a way to find that regularization value quicker?
On 13. Aug 2022, at 20:35, Shane A. McQuarrie @.***> wrote:
@minhtriet, the appropriate range for the regularizer is highly problem dependent. In relatively simple problems, we've had success with small regularization values. In others, such as in this paper, we've needed larger regularization values like the ones you are seeing. So this is normal. Hope that helps.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
@minhtriet yes, I recommend searching for the regularizer on a log scale, np.logspace()
might be helpful. This repository might also be helpful to look at (specifically step3_train.py
, though it uses an older version of the package).
The objective I tried to run the code with
cA
mode. After that I include model formH
mode tocA
to improve performance. However, I receive the errorIntegrationWarning: Required step size is less than spacing between numbers
fromrom_operator_inference/core/nonparametric/_public.py
Already tried tests
During my simulation, I took care to not let the Courant strays far from 1.0
How could I debug this error?