feat(eval): add markdown export for hit rates and average ages
- Introduced functionality to export hit rates and average ages as markdown files. - Generated `hit_rates.md` and `avg_ages.md` for easier sharing and reporting. Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
parent
09b943e41d
commit
43b84bf0bb
@ -145,6 +145,17 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "58a7865b-6ce6-4960-8dc5-c926d5463949",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"pd.DataFrame(hit_rates, columns=[\"hit_rates\"]).to_markdown('./experiments/hit_rates.md')\n",
|
||||
"pd.DataFrame(avg_ages, columns=[\"avg_ages\"]).to_markdown('./experiments/avg_ages.md')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "a92dcf86-d0ae-4f5c-937f-aeac45ac0dea",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -155,7 +166,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"execution_count": 8,
|
||||
"id": "0ffb1366-83ea-49ab-83ca-945ed993ef3f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -170,7 +181,7 @@
|
||||
" './experiments/No_Refresh_5_0s_ttl/details.csv']"
|
||||
]
|
||||
},
|
||||
"execution_count": 7,
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -181,7 +192,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"execution_count": 9,
|
||||
"id": "6e48f78f-15a3-4788-8ac9-6ad1fabbee26",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -346,7 +357,7 @@
|
||||
"[99 rows x 6 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -357,7 +368,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"execution_count": 10,
|
||||
"id": "3e0ddc4a-bede-4921-8ce8-427ef028e19e",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -367,7 +378,7 @@
|
||||
"43375"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
8
experiments/avg_ages.md
Normal file
8
experiments/avg_ages.md
Normal file
@ -0,0 +1,8 @@
|
||||
| | avg_ages |
|
||||
|---:|-----------:|
|
||||
| 0 | 0.240582 |
|
||||
| 1 | 0.491436 |
|
||||
| 2 | 1.00288 |
|
||||
| 3 | 1.48616 |
|
||||
| 4 | 1.99204 |
|
||||
| 5 | 2.45903 |
|
8
experiments/hit_rates.md
Normal file
8
experiments/hit_rates.md
Normal file
@ -0,0 +1,8 @@
|
||||
| | hit_rates |
|
||||
|---:|------------:|
|
||||
| 0 | 0.45867 |
|
||||
| 1 | 0.613708 |
|
||||
| 2 | 0.751005 |
|
||||
| 3 | 0.815118 |
|
||||
| 4 | 0.852101 |
|
||||
| 5 | 0.87731 |
|
Loading…
x
Reference in New Issue
Block a user