CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
cuv::libs::rbm Namespace Reference

Restricted Boltzmann Machine (RBM) More...

Functions

template<class __value_type , class __memory_space_type , class __memory_layout_type >
void set_binary_sequence (tensor< __value_type, __memory_space_type, __memory_layout_type > &m, const int &start)
 set a matrix to consecutive binary numbers in the columns, starting with the number `start'
template<class __value_type , class __memory_space_type , class __memory_layout_type >
void sigm_temperature (tensor< __value_type, __memory_space_type, __memory_layout_type > &m, const tensor< __value_type, __memory_space_type > &temp)
 apply sigmoid column-wise with the temperature specified for each column
template<class __value_type , class __memory_space_type , class __memory_layout_type >
void set_local_connectivity_in_dense_matrix (tensor< __value_type, __memory_space_type, __memory_layout_type > &m, int patchsize, int vx, int vy, int hx, int hy, int maxdist_from_main_dia=1E6, bool round=false)
 simulate a local connectivity pattern.
template<class __value_type , class __memory_space_type , class __memory_layout_type >
void copy_at_rowidx (tensor< __value_type, __memory_space_type, __memory_layout_type > &dst, const tensor< __value_type, __memory_space_type, __memory_layout_type > &src, const tensor< typename tensor< __value_type, __memory_space_type, __memory_layout_type >::size_type, __memory_space_type, __memory_layout_type > &rowidx, const unsigned int offset)
 copy one matrix into another but only at specified positions.
template<class __value_type , class __memory_space_type , class __memory_layout_type >
void copy_redblack (tensor< __value_type, __memory_space_type, __memory_layout_type > &dst, const tensor< __value_type, __memory_space_type, __memory_layout_type > &src, const unsigned int num_maps, const unsigned int color)
template<class __value_type , class __memory_layout , class __memory_space_type >
void bitflip (tensor< __value_type, __memory_layout, __memory_space_type > &matrix, typename tensor< __value_type, __memory_layout, __memory_space_type >::size_type row)
 Bit-Flip a row of a column-major matrix.

Detailed Description

Restricted Boltzmann Machine (RBM)

Utility functions for restricted Boltzmann machine.