| 11 | PE = "sphericalharmonic" |
| 12 | |
| 13 | def fit_comparison(): |
| 14 | |
| 15 | # comparison |
| 16 | for comparison in ["wrap", "spherecplus"]: |
| 17 | for poly in POLYS: |
| 18 | min_radius = int(180 / poly) |
| 19 | args = Namespace(dataset='checkerboard', |
| 20 | pe=comparison, |
| 21 | nn=NN, |
| 22 | min_radius = min_radius, |
| 23 | legendre_polys=poly, |
| 24 | save_model=False, |
| 25 | log_wandb=False, |
| 26 | hparams='hparams.yaml', |
| 27 | results_dir='results/train/exp_computation', |
| 28 | expname=f"comparison/{comparison}-minr{min_radius}-poly{poly}", |
| 29 | harmonics_calculation="analytic", |
| 30 | seed=0, |
| 31 | resume_ckpt_from_results_dir=False, |
| 32 | matplotlib=True, |
| 33 | matplotlib_show=False, |
| 34 | use_expnamehps=False, |
| 35 | max_epochs=None, |
| 36 | accelerator="cpu", |
| 37 | gpus=-1, |
| 38 | checkerboard_scale=1) |
| 39 | fit(args) |
| 40 | |
| 41 | def fit_sh(): |
| 42 | for poly in POLYS: |