Skip to content

fix(analysis): define best_bpb before y-axis scaling#342

Open
kaizen-38 wants to merge 1 commit intokarpathy:masterfrom
kaizen-38:feat/bug-fix
Open

fix(analysis): define best_bpb before y-axis scaling#342
kaizen-38 wants to merge 1 commit intokarpathy:masterfrom
kaizen-38:feat/bug-fix

Conversation

@kaizen-38
Copy link

Summary

Fixes a NameError in analysis.ipynb where best was used before being defined in the progress plot cell.

What changed

  • Define best_bpb = kept_bpb.min() in the plotting cell.
  • Use best_bpb for y-axis margin calculation and set_ylim.

Why

Running the notebook top-to-bottom can fail in the plot cell because best is not defined in that scope. This makes the cell self-contained and executable.

Fixes #262.

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.

Bug: 'best' variable used before definition in analysis.ipynb

1 participant