0
$\begingroup$

I have seen that in many most learning algorithms, including decision tree learning algorithms, missing values are handled through imputation or estimation using EM algorithms and such.

I wanted to know since decision trees make their decision based on rules, can't we have a tree which checks if the particular attribute is missing and proceed with separate rules for that. The following link describes this http://0agr.ru/wiki/index.php/Decision_Tree_%28Data_Mining%29#Handling_Missing_Values.

Is this a good idea and will it give a better result than simply replacing the missing values with the mean. Are there any good libraries which implement this, the current one i am using is scikit-learn which doesn't do this.

$\endgroup$
  • $\begingroup$ You may want to look up surrogate split. $\endgroup$ – godspeed Aug 19 '16 at 7:53
1
$\begingroup$

Your question is somewhat similar to this

Why doesn't Random Forest handle missing values in predictors?

You can modify the algorithm to take missing values into consideration as used in CART C4.5 implementation but it is adds computational cost because of modification that you make. Adding this computational cost may not outweigh the improvement & so imputation is generally preferred.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.