mnncorrect
Batch correction with mutual nearest neighbors
|
Options for compute()
.
More...
#include <mnncorrect.hpp>
Public Attributes | |
int | num_neighbors = 15 |
int | num_steps = 1 |
std::shared_ptr< knncolle::Builder< Index_, Float_, Float_, Matrix_ > > | builder |
MergePolicy | merge_policy = MergePolicy::RSS |
int | num_threads = 1 |
Index_ | Integer type of the observation indices. |
Float_ | Floating-point type of the input/output data. |
Matrix_ | Class of the input data matrix for the neighbor search. This should satisfy the knncolle::Matrix interface. Alternatively, it may be a knncolle::SimpleMatrix . |
std::shared_ptr<knncolle::Builder<Index_, Float_, Float_, Matrix_> > mnncorrect::Options< Index_, Float_, Matrix_ >::builder |
Algorithm to use for building the nearest-neighbor search indices. If NULL, defaults to an exact search via knncolle::VptreeBuilder
with Euclidean distances.
MergePolicy mnncorrect::Options< Index_, Float_, Matrix_ >::merge_policy = MergePolicy::RSS |
Policy for choosing the merge order.
int mnncorrect::Options< Index_, Float_, Matrix_ >::num_neighbors = 15 |
Number of neighbors to use in the various search steps - specifically, identification of MNN pairs and calculation of the centers of mass. It can be interpreted as the lower bound on the number of observations in each "subpopulation".
Larger values improve the stability of the correction by increasing the number of MNN pairs and including more observations in each center of mass. However, this comes at the cost of reduced resolution when matching subpopulations across batches.
int mnncorrect::Options< Index_, Float_, Matrix_ >::num_steps = 1 |
Number of steps for the recursive neighbor search to compute the center of mass for each MNN-involved observationc. Larger values mitigate the kissing effect but increase the risk of including inappropriately distant subpopulations into the center of mass.
int mnncorrect::Options< Index_, Float_, Matrix_ >::num_threads = 1 |
Number of threads to use. The parallelization scheme is defined by parallelize()
.