mlpack
|
The SpillNSWrapper class wraps the NeighborSearch class when the spill tree is used. More...
#include <ns_model.hpp>
Public Member Functions | |
SpillNSWrapper (const NeighborSearchMode searchMode, const double epsilon) | |
Construct the SpillNSWrapper. | |
virtual | ~SpillNSWrapper () |
Destruct the SpillNSWrapper. | |
virtual SpillNSWrapper * | Clone () const |
Return a copy of the SpillNSWrapper. | |
virtual void | Train (arma::mat &&referenceSet, const size_t leafSize, const double tau, const double rho) |
Train the model using the given parameters. | |
virtual void | Search (arma::mat &&querySet, const size_t k, arma::Mat< size_t > &neighbors, arma::mat &distances, const size_t leafSize, const double rho) |
Perform bichromatic search (i.e. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the NeighborSearch model. | |
![]() | |
NSWrapper (const NeighborSearchMode searchMode, const double epsilon) | |
Construct the NSWrapper object, initializing the internally-held NeighborSearch object. More... | |
virtual | ~NSWrapper () |
Delete the NSWrapper object. | |
const arma::mat & | Dataset () const |
Get a reference to the reference set. | |
NeighborSearchMode | SearchMode () const |
Get the search mode. | |
NeighborSearchMode & | SearchMode () |
Modify the search mode. | |
double | Epsilon () const |
Get epsilon, the approximation parameter. | |
double & | Epsilon () |
Modify epsilon, the approximation parameter. | |
virtual void | Search (const size_t k, arma::Mat< size_t > &neighbors, arma::mat &distances) |
Perform monochromatic neighbor search (i.e. More... | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the NeighborSearch model. | |
![]() | |
NSWrapperBase () | |
Create the NSWrapperBase object. More... | |
virtual | ~NSWrapperBase () |
Destruct the NSWrapperBase (nothing to do). | |
The SpillNSWrapper class wraps the NeighborSearch class when the spill tree is used.
|
virtual |
Perform bichromatic search (i.e.
search with a different query set) using the given parameters.