You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have realized that when factors are entered into easy_glmnet as the outcome variable, the "Replicating Metrics" part of the model fitting just sits at 0% complete. That said, if the factors are converted to 0 and 1 (i.e. as.integer(outcome_variable)), then things work fine. It may make things easier for users if this conversion is done automatically?
The text was updated successfully, but these errors were encountered:
[1] "Generating predictions for a single train test split:"
|==================================================| 100% elapsed =00s, remaining ~00s
Show Traceback
Rerun with Debug
Error in stats::cor(y_true, y_pred) : 'x' must be numeric
>
# Set dependent variabley<- set_dependent_variable(.data, dependent_variable)
# Process dependent variableif (family=="binomial") {
# Check that dependent variable has two classesif (length(unique(y)) !=2) {
stop("Error! Dependent variable must have two classes!")
}
# Check if dependent variable is a factor if (is.factor(y)) {
y<- as.numeric(y) -1
}
}
# Capture dependent variableobject[["y"]] <-y
I have realized that when factors are entered into easy_glmnet as the outcome variable, the "Replicating Metrics" part of the model fitting just sits at 0% complete. That said, if the factors are converted to 0 and 1 (i.e.
as.integer(outcome_variable)
), then things work fine. It may make things easier for users if this conversion is done automatically?The text was updated successfully, but these errors were encountered: