Discretizer function
1 2 3 4 | discretizer_fn(column, granularity = 3, mode_freq_threshold = 0.15,
mode_ratio_threshold = 1.5, category_range = min(granularity, 20):20,
lower_count_bound = granularity, upper_count_bound = NULL,
missing_level = "Missing", ...)
|
column |
an atomic vector. The variable to discretize. |
granularity |
an integer. The suggested number of levels. |
mode_freq_threshold |
a real value between 0 and 1. If the mode of the
variable exceeds this value and is greater than
|
mode_ratio_threshold |
a real value. See the |
category_range |
The number of levels to consider when the
discretization procedure descrized in the |
lower_count_bound |
an integer. Variables with less than or equal to
this many unique values will not get discretized. Default is
|
upper_count_bound |
an integer. Variables with more than or equal to
this many unique values will not get discretized. Default is
|
missing_level |
character. Any values that were |
... |
additional arguments to pass to arules::discretize. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.