Skip to content

Commit 441e6ff

Browse files
rathideep22Copilot
andauthored
Update algorithms/linfa-ensemble/src/adaboost.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 521cc6c commit 441e6ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

algorithms/linfa-ensemble/src/adaboost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ where
259259
// Handle edge cases for weighted error
260260
if weighted_error <= 0.0 {
261261
// Perfect prediction - add model with maximum weight and stop
262-
model_weights.push(10.0); // Large weight for perfect classifier
262+
model_weights.push(PERFECT_CLASSIFIER_WEIGHT); // Large weight for perfect classifier
263263
models.push(model);
264264
break;
265265
}

0 commit comments

Comments
 (0)