Skip to content

Commit ab70f73

Browse files
committed
Minor drlearner fixes
1 parent fa3e41e commit ab70f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

econml/drlearner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ def n_crossfit_splits(self):
15021502
@n_crossfit_splits.setter
15031503
def n_crossfit_splits(self, value):
15041504
if value != 'raise':
1505-
warn("Deprecated by parameter `n_splits` and will be removed in next version.")
1505+
warn("Deprecated by parameter `cv` and will be removed in next version.")
15061506
self.cv = value
15071507

15081508
@property
@@ -1534,4 +1534,4 @@ def subsample_fr(self, value):
15341534
warn("The parameter 'subsample_fr' has been deprecated and will be removed in the next version. "
15351535
"Use 'max_samples' instead, with the convention that "
15361536
"'subsample_fr=x' is equivalent to 'max_samples=x/2'.")
1537-
max_samples = .45 if value == 'auto' else value / 2
1537+
self.max_samples = .45 if value == 'auto' else value / 2

0 commit comments

Comments
 (0)