Skip to content

Add missing-value prediction policies for HoeffdingTree#353

Closed
sekarminati wants to merge 7 commits into
adaptive-machine-learning:mainfrom
sekarminati:ht_missing_value
Closed

Add missing-value prediction policies for HoeffdingTree#353
sekarminati wants to merge 7 commits into
adaptive-machine-learning:mainfrom
sekarminati:ht_missing_value

Conversation

@sekarminati

Copy link
Copy Markdown
Contributor

This PR adds support for handling missing values during prediction in HoeffdingTree.

Previously, prediction followed MOA’s default behavior. With this change, users can choose how the tree should behave when a split attribute is missing.

What’s included:

  • Add missing_value_policy to HoeffdingTree
  • Support three policies:
    • default: use MOA’s default behavior
    • random: follow one randomly chosen child; if that path cannot produce usable votes, fall back to the current node
    • all: combine votes from all reachable children
  • Add tree visualization
  • Add tests for the new missing_value_policy parameter
  • Add notebooks to demonstrate and experiment with the new behavior

@hmgomes

hmgomes commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Many thanks for the contribution! However, I am closing it for the time being

@hmgomes hmgomes closed this Apr 30, 2026
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.

2 participants