Skylark (Sketching Library)
0.1
|
#include <RFT_data.hpp>
Public Types | |
typedef dense_transform_data_t < KernelDistribution > | underlying_data_type |
typedef sketch_transform_data_t | base_t |
Public Member Functions | |
RFT_data_t (int N, int S, double inscale, double outscale, base::context_t &context) | |
virtual boost::property_tree::ptree | to_ptree () const |
Protected Member Functions | |
RFT_data_t (int N, int S, double inscale, double outscale, const base::context_t &context, std::string type) | |
base::context_t | build () |
Protected Attributes | |
double | _inscale |
double | _outscale |
boost::shared_ptr < underlying_data_type > | _underlying_data |
std::vector< double > | _shifts |
Random Fourier Transform (data)
Sketch transform into Euclidean space of functions in an RKHS implicitly defined by a vector and a shift-invariant kernel.
See: Ali Rahimi and Benjamin Recht Random Features for Large-Scale Kernel Machines NIPS 2007.
Definition at line 27 of file RFT_data.hpp.
typedef sketch_transform_data_t skylark::sketch::RFT_data_t< KernelDistribution >::base_t |
Reimplemented in skylark::sketch::LaplacianRFT_data_t, and skylark::sketch::GaussianRFT_data_t.
Definition at line 30 of file RFT_data.hpp.
typedef dense_transform_data_t<KernelDistribution> skylark::sketch::RFT_data_t< KernelDistribution >::underlying_data_type |
Definition at line 29 of file RFT_data.hpp.
skylark::sketch::RFT_data_t< KernelDistribution >::RFT_data_t | ( | int | N, |
int | S, | ||
double | inscale, | ||
double | outscale, | ||
base::context_t & | context | ||
) | [inline] |
Definition at line 32 of file RFT_data.hpp.
skylark::sketch::RFT_data_t< KernelDistribution >::RFT_data_t | ( | int | N, |
int | S, | ||
double | inscale, | ||
double | outscale, | ||
const base::context_t & | context, | ||
std::string | type | ||
) | [inline, protected] |
Definition at line 51 of file RFT_data.hpp.
base::context_t skylark::sketch::RFT_data_t< KernelDistribution >::build | ( | ) | [inline, protected] |
random samples should only be drawn here, return context after random samples have been extracted.
Reimplemented from skylark::sketch::sketch_transform_data_t.
Definition at line 58 of file RFT_data.hpp.
Referenced by skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::RFT_data_t().
virtual boost::property_tree::ptree skylark::sketch::RFT_data_t< KernelDistribution >::to_ptree | ( | ) | const [inline, virtual] |
Serializes a sketch to a property_tree
Implements skylark::sketch::sketch_transform_data_t.
Reimplemented in skylark::sketch::LaplacianRFT_data_t, and skylark::sketch::GaussianRFT_data_t.
Definition at line 41 of file RFT_data.hpp.
double skylark::sketch::RFT_data_t< KernelDistribution >::_inscale [protected] |
Definition at line 72 of file RFT_data.hpp.
Referenced by skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::build().
double skylark::sketch::RFT_data_t< KernelDistribution >::_outscale [protected] |
Definition at line 73 of file RFT_data.hpp.
std::vector<double> skylark::sketch::RFT_data_t< KernelDistribution >::_shifts [protected] |
Definition at line 76 of file RFT_data.hpp.
Referenced by skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::build().
boost::shared_ptr<underlying_data_type> skylark::sketch::RFT_data_t< KernelDistribution >::_underlying_data [protected] |
Scaling for trigonometric factor Data of the underlying dense transformation
Definition at line 75 of file RFT_data.hpp.
Referenced by skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::build().