Download tests/reports/convert.py from recommender-system/llmproccrs: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/recommender-system/llmproccrs/resolve/main/tests/reports/convert.py
- Command line
-
hf download hf://recommender-system/llmproccrs/tests/reports/convert.py
-
curl -L -o convert.py https://huggingface.co/recommender-system/llmproccrs/resolve/main/tests/reports/convert.py
471 Bytes
| import pandas as pd | |
| # 1. Load file CSV | |
| df = pd.read_csv('report_ml_50_runs_qwen.csv') | |
| # 2. Pilih kolom yang dibutuhkan dan ubah nama kolomnya | |
| df_filtered = df[['Run_ID', 'Cum_Hits_Prop', 'Cum_MRR_Prop']].rename(columns={ | |
| 'Run_ID': 'run', | |
| 'Cum_Hits_Prop': 'HR@100', | |
| 'Cum_MRR_Prop': 'MRR' | |
| }) | |
| # 3. Tampilkan hasil 5 baris pertama | |
| print(df_filtered.head()) | |
| # (Opsional) Simpan hasil konversi ke file CSV baru | |
| df_filtered.to_csv('report_qwen.csv', index=False) |