
Release Notes: - N/A --------- Co-authored-by: michael <michael@zed.dev> Co-authored-by: agus <agus@zed.dev>
1.3 KiB
1.3 KiB
- The changes involve renaming the
TestData
class toLabeledData
across multiple files. This includes updating the import statements in__init__.py
,cache.py
,router.py
,schema.py
, andutils.py
to reflect this new class name. The__all__
list in__init__.py
is also updated to exportLabeledData
instead ofTestData
. This appears to be a conceptual renaming to better reflect the purpose of the data structure. - The modifications update all function signatures and type hints that previously used
TestData
to now useLabeledData
. This affects several functions incache.py
including_generate_run_cache
,_eval_cache
, and_grid_search_opt_cache
, as well as functions inrouter.py
like_generate_run_router
and_eval_router
. The utility functions inutils.py
are also updated to work withLabeledData
instead ofTestData
. - The changes introduce a new
search_step
parameter in the router optimization logic withinrouter.py
, with a default value of 0.10. This parameter is passed through to the_router_random_search
function and is used in the optimization process. The test filetest_threshold_optimizer.py
is updated to explicitly set this parameter to 0.5 when calling the optimize method, demonstrating how it can be configured for different search granularities during threshold optimization.