Skip to content

A weird error using adaboost #159

@vadim-cherepanov

Description

@vadim-cherepanov

I created a simple model with one {0,1} dependent variable y (int) and many independent double variables, but when I run

gbm(formula = as.formula("y ~ ."), distribution = "adaboost", data = dt,
    n.trees = 1000, interaction.depth = 1, shrinkage = 0.01, cv.folds = 0, keep.data = FALSE)

I get

Error in is.null(weights) || is.infinite(weights) :
'length = NNN' in coercion to 'logical(1)'

where NNN ~ 1500 is the number of observations. There are no NAs in the data, and both 0s and 1s are present in y.

So, I decided to check an older more complicated model, which worked flawlessly before, but after thinking for a while it gave me the same error with a different NNN ~ 30,000.

Any ideas what may cause this now? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions