All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
lsh_nearest_neighbors_regression.hpp File Reference
#include "paal/data_structures/thread_pool.hpp"
#include "paal/regression/lsh_functions.hpp"
#include "paal/utils/accumulate_functors.hpp"
#include "paal/utils/hash.hpp"
#include "paal/utils/type_functions.hpp"
#include "paal/utils/unordered_map_serialization.hpp"
#include <boost/range/algorithm/transform.hpp>
#include <boost/range/combine.hpp>
#include <boost/range/empty.hpp>
#include <boost/range/size.hpp>
#include <boost/unordered_map.hpp>
#include <boost/serialization/vector.hpp>
#include <functional>
#include <iterator>
#include <thread>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

struct  paal::detail::lightweight_tag
 
class  paal::hash_function_tuple< Funs >
 functor representing tuple of hash functions More...
 
class  paal::hash_function_tuple_generator< FunctionGenerator >
 
class  paal::lsh_nearest_neighbors_regression< HashValue, LshFun, HashForHashValue >
 detail More...
 

Namespaces

 paal
 global namespace of project.
 
 paal::detail
 Detail namespace.
 

Typedefs

using paal::default_hash_function_generator = lsh::hamming_hash_function_generator
 

Functions

template<typename FunctionGenerator >
auto paal::make_hash_function_tuple_generator (FunctionGenerator &&function_generator, unsigned hash_functions_per_point)
 
template<typename Fun , typename Point >
auto paal::detail::call (Fun const &f, Point &&p, detail::lightweight_tag)
 
template<typename Function , typename Point >
auto paal::detail::call (hash_function_tuple< Function > const &f, Point &&p, detail::lightweight_tag tag)
 
template<typename TrainingPoints , typename TrainingResults , typename LshFunctionGenerator >
auto paal::make_lsh_nearest_neighbors_regression (TrainingPoints &&training_points, TrainingResults &&training_results, unsigned passes, LshFunctionGenerator &&lsh_function_generator, unsigned threads_count=std::thread::hardware_concurrency())
 this is the most general version of the make_lsh_nearest_neighbors_regression, It takes any hash function generator. More...
 
template<typename TrainingPoints , typename TrainingResults , typename FunctionGenerator >
auto paal::make_lsh_nearest_neighbors_regression_tuple_hash (TrainingPoints &&training_points, TrainingResults &&training_results, unsigned passes, FunctionGenerator &&function_generator, unsigned hash_functions_per_point, unsigned threads_count=std::thread::hardware_concurrency())
 This is the special version of make_lsh_nearest_neighbors_regression. This version assumes that hash function is concatenation (tuple) of several hash functions. In this function user provide Function generator for the inner functions only. More...
 

Detailed Description

Author
Andrzej Pacuk, Piotr Wygocki
Version
1.0
Date
2014-10-06

Definition in file lsh_nearest_neighbors_regression.hpp.