Spaces:
Running on Zero
Running on Zero
Download experiments/run_analysis_only.py from ArchitSharma/FeatureLens: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/ArchitSharma/FeatureLens/resolve/main/experiments/run_analysis_only.py
- Command line
-
hf download hf://spaces/ArchitSharma/FeatureLens/experiments/run_analysis_only.py
-
curl -L -o run_analysis_only.py https://huggingface.co/spaces/ArchitSharma/FeatureLens/resolve/main/experiments/run_analysis_only.py
665 Bytes
| from __future__ import annotations | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| def run(module: str, *args: str) -> None: | |
| command = [sys.executable, '-m', module, *args] | |
| print('\n$', ' '.join(command), flush=True) | |
| subprocess.run(command, cwd=ROOT, check=True) | |
| def main() -> None: | |
| run('experiments.evaluate_features') | |
| run('experiments.analyze_stability') | |
| run('experiments.analyze_study') | |
| run('experiments.make_report') | |
| run('scripts.validate_artifacts') | |
| print('\nFeatureLens CPU analysis pipeline complete. See artifacts/report.md') | |
| if __name__ == '__main__': | |
| main() | |