B Using ML helper function
load("data/ml_n_composite_object.rda", verbose = TRUE)
Loading objects:
composite
metabo_composite
ml_genus_dsestate
ps_df
ml_genus_enttype
ml_genus_nationality
ml_genus_bmi
How do you know what are the different hyperparameter options are and what are the dafault values for the different modeling approaches
library(mikropml)
get_hyperparams_list(ml_genus_nationality, "glmnet")
$lambda
[1] 1e-04 1e-03 1e-02 1e-01 1e+00 1e+01
$alpha
[1] 0
get_hyperparams_list(ml_genus_nationality, "rf")
$mtry
[1] 6 12 24
get_hyperparams_list(ml_genus_nationality, "svmRadial")
$C
[1] 1e-03 1e-02 1e-01 1e+00 1e+01 1e+02
$sigma
[1] 1e-06 1e-05 1e-04 1e-03 1e-02 1e-01
get_hyperparams_list(ml_genus_nationality, "rpart2") # Decision tree
$maxdepth
[1] 1 2 4 8 16 30
get_hyperparams_list(ml_genus_nationality, "xgbTree") # XGBoost
$nrounds
[1] 100
$gamma
[1] 0
$eta
[1] 0.001 0.010 0.100 1.000
$max_depth
[1] 1 2 4 8 16 30
$colsample_bytree
[1] 0.8
$min_child_weight
[1] 1
$subsample
[1] 0.4 0.5 0.6 0.7