CIRCA
CIRCA copied to clipboard
File params-sim-run.json
How to generate file params-sim-run.json?
params-sim-run.json should be generated in the following steps.
- Execute
python -m circa.experiment generateto generate the simulation data. - Execute
python -m circa.experiment tuneto explore parameter combinations.- You can insert
--max-workers 16beforetuneto enable multi-processing.16can be replaced with other positive integers, e.g., the number of CPU cores. -
--model-params params-sim-tune.jsonstated inREADME.mdis also optional, which is used to filtered out some parameter combinations.
- You can insert
- Execute
Rscript img/draw.sim.Rto produce summaries underimg/output.- This command may end with a file-not-found error, as other simulation experiments have not been conducted.
- Only the content in
img/output/best-sim-tuning.texis in need now.
- Execute
python -m circa.experiment params > params-sim-run.jsonto create a parameter template. - Edit
params-sim-run.json(generated in the Step 4) according toimg/output/best-sim-tuning.tex(generated in the Step 3).- For each
Methodinimg/output/best-sim-tuning.tex, choose the row with the highestAC.5. The related parameters can be found in thenamecolumn. - For example, in my previous run,
nameof the SPOT instance with the highestAC.5isEmpty-SPOT\_p0.01. Hence, inparams-sim-run.json, only0.01in thespot.risklist is reserved and other options (0.001and0.0001) are removed. - All the
graphparameters are neglected in the simulation study. As for a real-world dataset, the leading component innamebefore the first dash (-) is for the graph. For example,PC\_gauss\_a0.5means,- only
pc_gaussis used, - choose
0.5foralpha, and -
max_conds_dimis unlimited withnullin the json file.
- only
- For each
Our experiment results can be found in figshare.
In circa.zip, you can find all four param-*.json we used.