Skip to content

Commit c635651

Browse files
committed
Release
1 parent 8d5beca commit c635651

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

lineartree/lineartree.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,20 +1544,8 @@ def predict_proba(self, X):
15441544
The class probabilities of the input samples. The order of the
15451545
classes corresponds to that in the attribute :term:`classes_`.
15461546
"""
1547-
check_is_fitted(self, attributes='base_estimator_')
1548-
1549-
X = self._validate_data(
1550-
X,
1551-
reset=False,
1552-
accept_sparse=True,
1553-
dtype='float32',
1554-
force_all_finite=True,
1555-
ensure_2d=True,
1556-
allow_nd=False,
1557-
ensure_min_features=self.n_features_in_
1558-
)
15591547

1560-
pred = self._sigmoid(self.base_estimator_.predict(X))
1548+
pred = self._sigmoid(self.decision_function(X))
15611549
proba = np.zeros((X.shape[0], 2))
15621550
proba[:, 0] = 1 - pred
15631551
proba[:, 1] = pred

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
HERE = pathlib.Path(__file__).parent
55

6-
VERSION = '0.3.2'
6+
VERSION = '0.3.3'
77
PACKAGE_NAME = 'linear-tree'
88
AUTHOR = 'Marco Cerliani'
99
AUTHOR_EMAIL = '[email protected]'

0 commit comments

Comments
 (0)