Description Usage Arguments Value Author(s) Examples
The function to calculate the maximum round each sampling is repeated, if dup_size is given as 0 then, it calculates the maximum round the number of positive instances to be duplicated to nearly match the number of negative instances
1 | n_dup_max(size_input, size_P, size_N, dup_size = 0)
|
size_input |
The size of overall dataset |
size_P |
The number of positive instances |
size_N |
The number of negative instances |
dup_size |
A number or vector of the number of times to be duplicated. The default is zero which means duplicating until nearly balanced. |
If dup_size is zero or contains zero, the number of rounds to duplicate positive to nearly equal to the number of negative instances If dup_size is not zero or contains no zero, the maximum value in dup_size
Wacharasak Siriseriwan <wacharasak.s@gmail.com>
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.