dmlc / dmlc/xgboost

How to set the minimum number of instances in one node

Open
#6,191 6 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
C++
Stars
28.8k
Forks
8.9k
Avg merge
1d 12h
Merged PRs (30d)
54

Description

Hi,

for data protection reasons I want to make sure that splitting stops when a minimum number of observation in one node is reached. In other tree boosting implementations there is a parameter to specify this. In case of Xgboost the manual says that min_child_weight specifys the minimum number of observations in regression mode.

Is there a possibility to specify the minimum number of observations in classification mode?

Thank you for your help.

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is named. Start with the XGBoost manual's min_child_weight entry and trace how the parameter is applied in classification, comparing the documented behavior with existing tests. Done means establishing whether a minimum observation count can be configured for classification and, if not, defining the required feature and test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.