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();
104 parameters.
merge(tapkee_internal::defaults);
108 void (*progress_function)(double) = parameters(keywords::progress_function);
109 bool (*cancel_function)() = parameters(keywords::cancel_function);
118 .embedUsing(selected_method);
120 catch (
const std::bad_alloc&)
std::string get_method_name(DimensionReductionMethod m)
An exception type that is thrown when the library can't get enough memory.
DimensionReductionMethod
Dimension reduction methods.
void message_info(const std::string &msg)
Return result of the library - a pair of DenseMatrix (embedding) and ProjectingFunction.
static LoggingSingleton & instance()
ImplementationBase< RandomAccessIterator, KernelCallback, DistanceCallback, FeaturesCallback > initialize(RandomAccessIterator begin, RandomAccessIterator end, KernelCallback kernel, DistanceCallback distance, FeaturesCallback features, ParametersSet &pmap, const Context &ctx)
TapkeeOutput embed(RandomAccessIterator begin, RandomAccessIterator end, KernelCallback kernel_callback, DistanceCallback distance_callback, FeaturesCallback features_callback, ParametersSet parameters)