Skip to content

Commit

Permalink
Update criterion in _interpreters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
00helloworld authored and kbattocchi committed Dec 21, 2022
1 parent 209804f commit f6170f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion econml/cate_interpreter/_interpreters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import abc
import numbers
import numpy as np
import sklearn
from sklearn.tree import DecisionTreeRegressor, DecisionTreeClassifier
from sklearn.utils import check_array
from ..policy import PolicyTree
Expand Down Expand Up @@ -149,7 +150,7 @@ def __init__(self, *,
self.include_uncertainty = include_model_uncertainty
self.uncertainty_level = uncertainty_level
self.uncertainty_only_on_leaves = uncertainty_only_on_leaves
self.criterion = "mse"
self.criterion = "squared_error" if sklearn.__version__ >= "1.0" else "mse"
self.splitter = splitter
self.max_depth = max_depth
self.min_samples_split = min_samples_split
Expand Down

0 comments on commit f6170f2

Please sign in to comment.