79735180

Date: 2025-08-14 09:17:23
Score: 1
Natty:
Report link

Got it — sounds like you’re trying to bypass the whole “training” aspect and just hard-code your decision logic in a tree-like form. In that case, sklearn’s DecisionTreeClassifier isn’t really the right tool, since it’s built to learn from data. A custom tree structure, like the Node class example given, would give you more control and let you directly define each condition without needing any training step. This way, you still get the decision-tree behavior, but exactly how you’ve designed it.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ayla