Skip to content

Drop six unused locals from the description optimizer report - #1675

Open
oliverames wants to merge 1 commit into
anthropics:mainfrom
oliverames:report-remove-dead-locals
Open

Drop six unused locals from the description optimizer report#1675
oliverames wants to merge 1 commit into
anthropics:mainfrom
oliverames:report-remove-dead-locals

Conversation

@oliverames

Copy link
Copy Markdown

generate_html in the skill-creator optimizer report still fetches holdout and best_train_score, and the history loop fetches train_passed, train_total, test_passed, and test_total on every iteration. None of the six names is read anywhere. The row scores come from aggregate_runs, which recomputes correct and total counts directly from the per-query results, so the four loop locals look like leftovers from before that helper landed.

Removing them changes no output. It just makes the script honest about where its numbers come from, which matters in a report people read while deciding whether to trust an optimized description.

A pyflakes pass over the bundled scripts is what surfaced these, if you would like me to send through anything else it finds.

generate_html still fetches holdout and best_train_score, and the history
loop fetched train_passed, train_total, test_passed, and test_total even
though row scores have been computed fresh by aggregate_runs since that
helper landed. None of the six names is read anywhere. Removing them keeps
the report honest about where its numbers come from.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant