PLearn 0.1
|
Each row contains a certain amount of field groups. More...
#include <CompactFileVMatrix.h>
Public Member Functions | |
GroupInfo () | |
GroupInfo (char type_, int length_, int max_, int bits_per_value_) | |
Public Attributes | |
char | type |
type of data (i for int, o for onehot, u for unsigned integer) | |
int | length |
number of fields | |
int | max |
maximal value of a field (entries will be normalized by that, there is no boundcheck) | |
int | bits_per_value |
we could change the type of bits_per_value if we want to minimize the size of GroupInfo | |
bool | active |
true if this field group is active | |
int | compact_length |
length of the group in the file |
Each row contains a certain amount of field groups.
This struct provides information about how a field group is encoded and how to put it in a Vec.
Definition at line 59 of file CompactFileVMatrix.h.
PLearn::GroupInfo::GroupInfo | ( | ) | [inline] |
Definition at line 60 of file CompactFileVMatrix.h.
: type('\0'), length(-1), max(-1), bits_per_value(-1), active(false), compact_length(-1) {}
Definition at line 69 of file CompactFileVMatrix.h.
: type(type_), length(length_), max(max_), bits_per_value(bits_per_value_), active(false), compact_length(-1) {}
true if this field group is active
Definition at line 83 of file CompactFileVMatrix.h.
we could change the type of bits_per_value if we want to minimize the size of GroupInfo
amount of bits used to encode each field (must be <= 8) (8 yields fastest conversion)
Definition at line 82 of file CompactFileVMatrix.h.
length of the group in the file
Definition at line 84 of file CompactFileVMatrix.h.
number of fields
Definition at line 79 of file CompactFileVMatrix.h.
Referenced by PLearn::CompactFileVMatrix::groupLength(), and PLearn::CompactFileVMatrix::groupNFields().
maximal value of a field (entries will be normalized by that, there is no boundcheck)
Definition at line 80 of file CompactFileVMatrix.h.
Referenced by PLearn::CompactFileVMatrix::groupLength(), and PLearn::CompactFileVMatrix::groupNValues().
type of data (i for int, o for onehot, u for unsigned integer)
Definition at line 78 of file CompactFileVMatrix.h.
Referenced by PLearn::CompactFileVMatrix::groupEncoding(), and PLearn::CompactFileVMatrix::groupLength().