Function written in C++ for validating a new point (KNNOR-Validation)
Usage
knnor_is_same_class(new_point, dataset, labels, k)
Arguments
- new_point
1-D array (vector)
new data point to be validated before adding (with times*features
elements)
- dataset
2-D array (matrix)
current embeddings (with size batch
x times*features
)
- labels
1-D array (vector)
of integers with batch
elements
- k
unsigned integer
number of nearest neighbors
Value
Returns TRUE
if a new point can be added, otherwise - FALSE