Spaces:
Sleeping
Sleeping
Download benchmarks/vectorization/scripts/eval.py from du-lab/MLR-Copilot: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/du-lab/MLR-Copilot/resolve/3ce6f4589500cb3f06dbefd32c19ca32425ca417/benchmarks/vectorization/scripts/eval.py
- Command line
-
hf download hf://spaces/du-lab/MLR-Copilot@3ce6f4589500cb3f06dbefd32c19ca32425ca417/benchmarks/vectorization/scripts/eval.py
-
curl -L -o eval.py https://huggingface.co/spaces/du-lab/MLR-Copilot/resolve/3ce6f4589500cb3f06dbefd32c19ca32425ca417/benchmarks/vectorization/scripts/eval.py
364 Bytes
| import sys | |
| import os | |
| sys.path.append("../env") | |
| import pandas as pd | |
| import numpy as np | |
| def get_score(submission_path = "../env"): | |
| try: | |
| submission = pd.read_csv(os.path.join(submission_path, "submission.csv"), delimiter=';') | |
| return float(submission.columns[0]) | |
| except: | |
| return 1e10 | |
| if __name__ == "__main__": | |
| print(get_score()) | |