powered by
Plot the coefficients and selected lambda of a glmnet model.
e_coeff_landa(model, category, sel.lambda = NULL, label = "Log Lambda")
echarts4r plot
a glmnet model.
a category of the variable to be predicted.
the selected lambda.
a character specifying the title to use on selected lambda tooltip.
Joseline Quiros <joseline.quiros@promidat.com>
modelo <- traineR::train.glmnet(Species~., iris) e_coeff_landa(modelo, 'setosa', log(modelo$lambda[1]))
Run the code above in your browser using DataLab