Skip to content

fix: use squared_error instead of deprecated mse criterion in tree tests - #100

Open
bugparty wants to merge 1 commit into
ddbourgin:masterfrom
bugparty:worktree-agent-aecb76dba3546a664
Open

fix: use squared_error instead of deprecated mse criterion in tree tests#100
bugparty wants to merge 1 commit into
ddbourgin:masterfrom
bugparty:worktree-agent-aecb76dba3546a664

Conversation

@bugparty

Copy link
Copy Markdown

Summary

  • Replace criterion = "mse" with criterion = "squared_error" in numpy_ml/tests/test_trees.py (lines 107, 198, 300)
  • sklearn renamed the "mse" criterion to "squared_error" and no longer accepts the old name

Test plan

  • Run pytest numpy_ml/tests/test_trees.py (note: a pre-existing import error in numpy_ml/utils/data_structures.pyfrom collections import Hashable — prevents collection on Python 3.10+; that is unrelated to this change)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant