PLearn 0.1
|
#include "UnaryVariable.h"
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) |