lipengyuer/DataScience

CARTRegression.py是否写反了左右子树的均值?

Opened this issue · 1 comments

line110和111,left和right是否写反了?

left_y_mean = right_y_sum/len(right_ID_list) if len(right_ID_list)>0 else 0
right_y_mean = left_y_sum/len(left_ID_list) if len(left_ID_list)>0 else 0
你指的是不是get_mse中的这两行? 感觉确实写错了,但结果方面应该不影响