Buckets:
| """Evaluate the actual fixed MAGIC backbone on the full training dataset.""" | |
| from datetime import datetime, timezone | |
| import json | |
| import os | |
| from pathlib import Path | |
| import time | |
| root = Path(__file__).resolve().parents[1] | |
| if hasattr(os, "sched_getaffinity"): | |
| os.sched_setaffinity(0, sorted(os.sched_getaffinity(0))[:4]) | |
| from examples.denoising.utils import magic_denoise, run_denoising_eval | |
| started = time.monotonic() | |
| mse, poisson = run_denoising_eval(magic_denoise, seed=42) | |
| report = dict(task="denoising", dataset="pancreas/inDrop1", seed=42, backbone="MAGIC", | |
| mse=float(mse), poisson=float(poisson), seconds=time.monotonic() - started, | |
| completed_at_utc=datetime.now(timezone.utc).isoformat()) | |
| (root / ".cache/magic_evaluation.json").write_text(json.dumps(report, indent=2) + "\n") | |
| print(json.dumps(report, indent=2)) | |
Xet Storage Details
- Size:
- 830 Bytes
- Xet hash:
- 317214c426d8f7def61501168c396b15717a20337cd8188f67326a573ef19b7f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.