6 #ifndef TURI_LSH_NEIGHBORS_H_ 7 #define TURI_LSH_NEIGHBORS_H_ 11 #include <toolkits/nearest_neighbors/nearest_neighbors.hpp> 12 #include <toolkits/nearest_neighbors/lsh_family.hpp> 15 namespace nearest_neighbors {
42 static constexpr
size_t LSH_NEIGHBORS_VERSION = 1;
56 void init_options(
const std::map<std::string,flexible_type>& _opts)
override;
66 void train(
const sframe& X,
const std::vector<flexible_type>& ref_labels,
67 const std::vector<dist_component_type>& composite_distance_params,
68 const std::map<std::string, flexible_type>& opts)
override;
89 sframe query(
const v2::ml_data& mld_queries,
90 const std::vector<flexible_type>& query_labels,
91 const size_t k,
const double radius,
92 const bool include_self_edges)
const override;
99 return LSH_NEIGHBORS_VERSION;
118 std::shared_ptr<lsh_family> lsh_model;
#define BEGIN_CLASS_MEMBER_REGISTRATION(python_facing_classname)
size_t get_version() const override
#define REGISTER_CLASS_MEMBER_FUNCTION(function,...)
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
#define END_CLASS_MEMBER_REGISTRATION
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.