validate — NLL Perturbation Analysis¶
The validate subcommand performs profile likelihood analysis by perturbing optimized parameters and measuring the NLL response. This helps verify that the optimizer has converged to a true minimum.
Basic Usage¶
r_analysis validate \
-n 64 \
-r "kmeans_BD10000" \
-ird results/ \
--steps 5 \
--scales 1e-3 1e-4
Arguments¶
Flag |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Number of perturbation steps in each direction |
|
|
|
Perturbation scale factors |
|
|
|
Noise realization: |
Perturbation Targets¶
Control which parameters are perturbed:
Flag |
Default |
Description |
|---|---|---|
|
|
Which \(\beta_d\) indices to perturb |
|
|
Which \(T_d\) indices to perturb |
|
|
Which \(\beta_s\) indices to perturb |
Perturbation spec values:
all— perturb all indices-1— skip this parameter entirely0:30— slice notation (indices 0 through 29)0,1,2— specific indicesmax— only the index with the largest valuemin— only the index with the smallest value
Plot Options¶
Flag |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Plot types: |
|
flag |
|
Overlay all runs on the same plot |
|
flag |
|
Use for-loop instead of vmap (less memory) |
|
|
auto |
Custom titles for each plot |
|
|
|
Output directory |
|
|
|
Format: |
|
|
|
Font size |
Plus all common arguments.
Example: Validate specific parameters¶
r_analysis validate \
-n 64 -r "kmeans_BD4000_GAL020" -ird results/ \
--perturb-beta-dust "0:50" \
--perturb-temp-dust "-1" \
--perturb-beta-pl "max" \
--plot-type nll grad \
--aggregate