| update_classes_wb | R Documentation |
Weight-based class updates
update_classes_wb(
s,
b,
Omega,
epsmin = 0.01,
epsmax = 0.7,
deltamin = 0.1,
deltashift = 0.5,
identify_classes = FALSE,
Cmax = 10L
)
s |
[ |
b |
[ |
Omega |
[ |
epsmin |
[ |
epsmax |
[ |
deltamin |
[ |
deltashift |
[ |
identify_classes |
[ |
Cmax |
[ |
The following updating rules apply:
Class c is removed if s_c < \epsilon_{min}.
Class c is split into two classes, if s_c > \epsilon_{max}.
Two classes c_1 and c_2 are merged to one class, if
||b_{c_1} - b_{c_2}|| < \delta_{min}.
A list of updated values for s, b, and Omega and
the indicator update_type which signals the type of class update:
0: no update
1: removed class
2: split class
3: merged classes
s <- c(0.7, 0.3)
b <- matrix(c(1, 1, 1, -1), ncol = 2)
Omega <- matrix(c(0.5, 0.3, 0.3, 0.5, 1, -0.1, -0.1, 0.8), ncol = 2)
### no update
update_classes_wb(s = s, b = b, Omega = Omega)
### remove class 2
update_classes_wb(s = s, b = b, Omega = Omega, epsmin = 0.31)
### split class 1
update_classes_wb(s = s, b = b, Omega = Omega, epsmax = 0.69)
### merge classes 1 and 2
update_classes_wb(s = s, b = b, Omega = Omega, deltamin = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.