We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_data
cat_vars are not respected when specifying via set_data:
cat_vars
coxph_validator <- mlexperiments::MLCrossValidation$new( learner = mlsurvlrnrs::LearnerSurvCoxPHCox$new(), fold_list = validation_fold_list, seed = seed, ncores = n_cores, return_models = TRUE ) coxph_validator$performance_metric <- mlsurvlrnrs::c_index coxph_validator$set_data( x = train_x[, which(colnames(train_x) %in% cox_feature_cols)], y = train_y, cat_vars = ml_cat_vars[which(ml_cat_vars %in% cox_feature_cols)] ) res_coxph <- coxph_validator$execute()
However, when setting them with learner_args, everything works fine:
learner_args
coxph_validator$learner_args <- list(cat_vars = ml_cat_vars[which(ml_cat_vars %in% cox_feature_cols)])
The text was updated successfully, but these errors were encountered:
kapsner
No branches or pull requests
cat_vars
are not respected when specifying viaset_data
:However, when setting them with
learner_args
, everything works fine:The text was updated successfully, but these errors were encountered: