Skip to content

Commit 031ca05

Browse files
committed
Fix Brier score of 0
1 parent 204112c commit 031ca05

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

R/bestLayerLearner.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ bestLayerLearner = function (x, y, perf = NULL) {
3333
# Avoid Brier score equals value
3434
value_esti = .Machine$double.eps
3535
}
36+
return(value_esti)
3637
})
3738
} else {
3839
if ((length(unique(y)) > 2) | is.character(y)) {

0 commit comments

Comments
 (0)