View source: R/german_credit_loader.R
get_german_credit_dataset | R Documentation |
Load and pre-process the dataset that ships with the package
get_german_credit_dataset(
scale = TRUE,
add_constant_term = TRUE,
download_destination = NULL
)
scale |
Whether to scale the features to have mean 0 and variance 1. |
add_constant_term |
Whether to add a constant term as the first feature. |
download_destination |
Provide a filepath if you want to download the dataset from source. Note that although the original dataset has 20 features (some of them qualitative), the numeric dataset has 24 features. |
A list with fields x
for features and y
for outcomes.
german <- get_german_credit_dataset()
head(german$y)
head(german$x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.