Quadrilateral Element Oversampling (GQEO, 2025)
GQEO.RdResampling with GQEO.
Arguments
- x
feature matrix or dataframe.
- y
a factor class variable. Can have more than two classes.
- k
number of nearest neighbours from which the corners of the quadrilaterals are chosen (at least 3). Default is 5.
- check_planarity
if
TRUE, quadrilaterals whose edges violate the polygon inequality are removed. Default isTRUE.- ovRate
Oversampling rate. Class \(j\) receives
round(ovRate * (n_max - n_j))synthetic samples, wheren_maxis the size of the largest class (halves are rounded up). Default is 1 meaning full balance. A vector with one value per class is also accepted.- ...
not used.
Value
a list with resampled dataset.
- x_new
Resampled feature matrix.
- y_new
Resampled target variable.
- x_syn
Generated synthetic feature data.
- y_syn
Generated synthetic label data.
Details
Year: 2025.
Synthetic samples are generated inside quadrilaterals made of a sample and three of
its k nearest neighbours of the same class, by bilinear
interpolation of the four corners. Classes that are too small to form a
quadrilateral are oversampled randomly with a warning.