Skip to content

Commit 32ce888

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 08d53bc commit 32ce888

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

machine_learning/adaboost.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ def _build_stump(
113113
for threshold in thresholds:
114114
for polarity in [1, -1]:
115115
pred = self._stump_predict(
116-
feature_matrix,
117-
feature,
118-
threshold,
119-
polarity,
120-
)
116+
feature_matrix,
117+
feature,
118+
threshold,
119+
polarity,
120+
)
121121
error = np.sum(sample_weights * (pred != target_signed))
122122

123123
# Keep stump with lowest weighted error

0 commit comments

Comments
 (0)