Skylark (Sketching Library)  0.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
skylark::sketch::RFT_data_t< KernelDistribution > Struct Template Reference

#include <RFT_data.hpp>

Inheritance diagram for skylark::sketch::RFT_data_t< KernelDistribution >:
Inheritance graph
[legend]
Collaboration diagram for skylark::sketch::RFT_data_t< KernelDistribution >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<template< typename > class KernelDistribution>
struct skylark::sketch::RFT_data_t< KernelDistribution >

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.


Member Typedef Documentation

template<template< typename > class KernelDistribution>
typedef sketch_transform_data_t skylark::sketch::RFT_data_t< KernelDistribution >::base_t
template<template< typename > class KernelDistribution>
typedef dense_transform_data_t<KernelDistribution> skylark::sketch::RFT_data_t< KernelDistribution >::underlying_data_type

Definition at line 29 of file RFT_data.hpp.


Constructor & Destructor Documentation

template<template< typename > class KernelDistribution>
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.

template<template< typename > class KernelDistribution>
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.


Member Function Documentation

template<template< typename > class KernelDistribution>
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().

template<template< typename > class KernelDistribution>
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.


Member Data Documentation

template<template< typename > class KernelDistribution>
double skylark::sketch::RFT_data_t< KernelDistribution >::_inscale [protected]
template<template< typename > class KernelDistribution>
double skylark::sketch::RFT_data_t< KernelDistribution >::_outscale [protected]

Definition at line 73 of file RFT_data.hpp.

template<template< typename > class KernelDistribution>
std::vector<double> skylark::sketch::RFT_data_t< KernelDistribution >::_shifts [protected]
template<template< typename > class KernelDistribution>
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().


The documentation for this struct was generated from the following file: