Automated benchmark metrics #7
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant enhancements to the benchmarking framework, focusing on agent system capabilities, benchmarking automation, and code quality improvements. The most important changes include updates to the agent system configuration, the addition of an abstract metric class and a specific metric implementation, integration of benchmarking modules into the testing framework, and the creation of a new automated testing script.
Enhancements to the agent system:
coder_agentprompt insystem_blueprint.jsonto clarify its specialization in single-cell RNA analysis and to emphasize constraints such as avoiding file modifications and prioritizing incremental responses.delegate_to_codercommand to include analyzing single-cell RNA and spatial single-cell data.Benchmarking framework improvements:
AutoMetricinAutoMetric.pyto standardize metrics applied to AnnData objects, including JSON serialization for results.CellCountMetric, to count the number of cells and genes in an AnnData object.MultiAgentTester.pyto support running benchmarks interactively, allowing users to select benchmark modules and execute them during the testing loop. [1] [2] [3]Automation and usability:
MultiAgentAutoTester.pyscript to automate agent system testing, including sandbox initialization, dataset handling, and benchmark execution. This script supports both interactive and automated workflows.run_automated.shshell script to simplify the execution of the automated tester, enabling users to run tests directly from the command line.Code quality and cleanup:
io_helpers.pyto improve code readability.rich.tableimports and utilities to enhance the display of benchmark results in bothMultiAgentTester.pyandMultiAgentAutoTester.py.These changes collectively improve the functionality, usability, and maintainability of the benchmarking framework, particularly for single-cell RNA analysis workflows.