PLearn 0.1
Classes | Namespaces | Functions
OneHotVariable.h File Reference
#include "UnaryVariable.h"
Include dependency graph for OneHotVariable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PLearn::OneHotVariable
 Represents a vector of a given lenth, that has value 1 at the index given by another variable and 0 everywhere else. More...
class  PLearn::DiffTemplate< ObjectType, OneHotVariable >
class  PLearn::TypeTraits< OneHotVariable >

Namespaces

namespace  PLearn
 

< for swap


Functions

Object * PLearn::toObjectPtr (const OneHotVariable &o)
PStream & PLearn::operator>> (PStream &in, OneHotVariable &o)
PStream & PLearn::operator>> (PStream &in, OneHotVariable *&o)
PStream & PLearn::operator<< (PStream &out, const OneHotVariable &o)
PStream & PLearn::operator>> (PStream &in, PP< OneHotVariable > &o)
template<class ObjectType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, OneHotVariable > *opt, PLearnDiff *diffs)
Var PLearn::onehot (int the_length, Var hotindex, real coldvalue=0.0, real hotvalue=1.0)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines