knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

tidymodel

Travis build status AppVeyor build status Codecov test coverage CRAN status Lifecycle: experimental

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/

Installation

You can install tidymodel from github with:

# install.packages("remotes")
remotes::install_github("ldanai/tidymodel")
remotes::install_github("ldanai/tidymodel", dependencies=FALSE)

Example

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.



ldanai/tidymodel documentation built on Jan. 4, 2020, 6:25 a.m.