-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: feat: Add how to run complete incremental evaluation
TASK: IL-313
- Loading branch information
1 parent
20db23b
commit c168619
Showing
4 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/documentation/how_tos/how_to_implement_complete_incremental_evaluation_flow.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from documentation.how_tos.example_data import DummyEloEvaluationLogic, example_data\n", | ||
"from intelligence_layer.evaluation import (\n", | ||
" IncrementalEvaluator,\n", | ||
" InMemoryEvaluationRepository,\n", | ||
")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"#How to implement complete incremental evaluation flows from running (multiple) tasks to aggregation\n", | ||
"\n", | ||
"This notebook outlines how to:\n", | ||
" - run multiple tasks and configurations on the same dataset\n", | ||
" - perform evaluations in an incremental fashion, i.e., adding additional runs to your existing evaluations without the need for recalculation\n", | ||
" - run aggregation on these evaluations\n", | ||
" - " | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"# Step 0 Define ne\n", | ||
"\n", | ||
"\n", | ||
"my_example_data = example_data()\n", | ||
"print()\n", | ||
"run_ids = [my_example_data.run_overview_1.id, my_example_data.run_overview_2.id]\n", | ||
"\n", | ||
"# Step 1\n", | ||
"dataset_repository = my_example_data.dataset_repository\n", | ||
"run_repository = my_example_data.run_repository\n", | ||
"evaluation_repository = InMemoryEvaluationRepository()\n", | ||
"evaluation_logic = DummyEloEvaluationLogic()\n", | ||
"\n", | ||
"# Step 2\n", | ||
"evaluator = IncrementalEvaluator(\n", | ||
" dataset_repository,\n", | ||
" run_repository,\n", | ||
" evaluation_repository,\n", | ||
" \"My dummy evaluation\",\n", | ||
" evaluation_logic,\n", | ||
")\n", | ||
"\n", | ||
"evaluation_overview = evaluator.evaluate_runs(*run_ids)\n", | ||
"\n", | ||
"# Step 3\n", | ||
"print(evaluation_overview.id)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"language_info": { | ||
"name": "python" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters