Skip to content

[BUG] Fix MCTS.run() docstring and add __repr__ for inspectability#624

Open
Vaishnav88sk wants to merge 1 commit intogc-os-ai:mainfrom
Vaishnav88sk:fix/mcts-run-return-type
Open

[BUG] Fix MCTS.run() docstring and add __repr__ for inspectability#624
Vaishnav88sk wants to merge 1 commit intogc-os-ai:mainfrom
Vaishnav88sk:fix/mcts-run-return-type

Conversation

@Vaishnav88sk
Copy link
Copy Markdown

LLM generated content, by Antigravity

Reference Issues/PRs

Fixes #622

What does this implement/fix? Explain your changes.

Fixed documentation and UX issues in the MCTS module:

  • Updated run() docstring to explicitly list all return dictionary keys (candidate, sequence, score).
  • Fixed verbose description to clarify it logs via logger.debug.
  • Added __repr__ for MCTS class to show key hyperparameters (depth, iterations).

What should a reviewer concentrate their feedback on?

  • Completeness of the dictionary key documentation.
  • Informative value of the __repr__ output.

Did you add any tests for the change?

Yes, added tests for the return dictionary structure and the repr string output in test_mcts.py.

Any other comments?

N/A

PR checklist

  • The PR title starts with [BUG]
  • Added/modified tests
  • Used pre-commit hooks

- Fix run() docstring: document all 3 return dict keys (candidate,
  sequence, score) instead of just 2
- Fix verbose param description: uses logger.debug, not print
- Add __repr__ showing depth, n_iterations, n_states, experiment
- Add 3 new tests for return dict keys and repr
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] Fix MCTS.run() return type annotation and docstring mismatch

1 participant