The goal of tidymodel is to make it easy to develop analytical models, as well as evalulate the model qualities.
More info: https://ldanai.github.io/tidymodel/
You can install tidymodel from github with:
# install.packages("remotes")
remotes::install_github("ldanai/tidymodel")
remotes::install_github("ldanai/tidymodel", dependencies=FALSE)
This shows you how to use tidymodel:
library(tidymodel)
library(tidyverse)
Show distributions
# with target labels
plot_distribution(dta,
"TARGET1",
"VAR1",
"VAR2",
"VAR3",
"VAR4")
# Without target labels
plot_distribution(dta,
NULL,
"VAR1",
"VAR2",
"VAR3",
"VAR4")
# Train data
dta2 = select(dta, TARGET1, VAR1:VAR20)
out = get_prediction(dta2,
model = model,
predicted = PREDICTED,
score = SCORE_DORMANCY,
target_name = DORMANT)
select(out, TARGET1, PREDICTED, SCORE_DORMANCY)
Please note that the ‘tidymodel’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.