8000 fix pep8 · scikit-learn/scikit-learn@3c7b8c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c7b8c9

Browse files
author
Prokopios Gryllos
committed
fix pep8
1 parent 6a822c6 commit 3c7b8c9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

sklearn/calibration.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ def fit(self, X, y):
128128
for train, test in cv.split(X, y):
129129
estimator = clone(self.base_estimator).fit(X[train], y[train])
130130
thresholds.append(
131-
_CutoffClassifier(
132-
estimator, self.method, self.pos_label, self.min_val_tnr,
133-
self.min_val_tpr
134-
).fit(X[test], y[test]).threshold
131+
_CutoffClassifier(estimator,
132+
self.method,
133+
self.pos_label,
134+
self.min_val_tnr,
135+
self.min_val_tpr).fit(
136+
X[test], y[test]
137+
).threshold
135138
)
136139
self.threshold = sum(thresholds) / \
137140
len(thresholds)

0 commit comments

Comments
 (0)
2A49
0