6 #ifndef TAPKEE_EMBED_H_ 7 #define TAPKEE_EMBED_H_ 94 template <
class RandomAccessIterator,
class KernelCallback,
class DistanceCallback,
class FeaturesCallback>
96 KernelCallback kernel_callback, DistanceCallback distance_callback,
99 #if EIGEN_VERSION_AT_LEAST(3,1,0) 100 Eigen::initParallel();
107 parameters.
merge(tapkee_internal::defaults);
111 void (*progress_function_ptr)(double) = parameters[progress_function];
112 bool (*cancel_function_ptr)() = parameters[cancel_function];
119 .embedUsing(selected_method);
121 catch (
const std::bad_alloc&)
An exception type that is thrown in case if wrong parameter value is passed.
An exception type that is thrown in case of missed parameter, i.e. when some required parameter is no...
std::string get_method_name(DimensionReductionMethod m)
An exception type that is thrown when the library can't get enough memory.
An exception type that is thrown in case of missed parameter, i.e. when some required parameter is no...
An exception type that is thrown when some parameter is passed more than once.
DimensionReductionMethod
Dimension reduction methods.
An exception type that is thrown when some parameter is passed more than once.
An exception type that is thrown in case if wrong parameter value is passed.
TapkeeOutput embed(RandomAccessIterator begin, RandomAccessIterator end, KernelCallback kernel_callback, DistanceCallback distance_callback, FeaturesCallback features_callback, stichwort::ParametersSet parameters)
void message_info(const std::string &msg)
Return result of the library - a pair of DenseMatrix (embedding) and ProjectingFunction.
ImplementationBase< RandomAccessIterator, KernelCallback, DistanceCallback, FeaturesCallback > initialize(RandomAccessIterator begin, RandomAccessIterator end, KernelCallback kernel, DistanceCallback distance, FeaturesCallback features, stichwort::ParametersSet &pmap, const Context &ctx)
static LoggingSingleton & instance()
An exception type that is thrown in case if wrong parameter value is passed.
An exception type that is thrown in case if wrong parameter value is passed.