Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bastistician committed Aug 12, 2021
1 parent 021e406 commit 7eef3c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions R/mboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,6 @@ mboost_fit <- function(blg, response, weights = rep(1, NROW(response)),
cf[, which(ix)] <- cftmp
}
if (!is.matrix(cf)) cf <- matrix(cf, nrow = 1)
## check if base-learner has coefficients
if(any(sapply(cf, is.null))){
ret <- NULL
} else {
ret <- switch(aggregate,
"sum" = rowSums(cf) * nu,
"cumsum" = {
Expand All @@ -438,7 +434,6 @@ mboost_fit <- function(blg, response, weights = rep(1, NROW(response)),
},
"none" = nu * cf
)
}
### set names, but not for bolscw base-learner
if (!cwlin) {
nm <- bl[[w]]$Xnames
Expand Down

0 comments on commit 7eef3c6

Please sign in to comment.