Data
Monotonic Constraint는 Prediction에 영향을 주지 않는 제약조건이다.
* +1: when the feature increases, the prediction must be greater or equal; * 0: no monotonic constraint (default); * -1: when the feature increases, the prediction must be smaller or equal. * Python Code 예 decision_tree_with_constraints = DecisionTreeRegressor( max_depth=3, min_samples_leaf=10, monotonic_cst=[1,1] # this line