#include <VMat.h>
Inheritance diagram for PLearn::VMat:


Public Member Functions | |
| VMat () | |
| VMat *. | |
| VMat (VMatrix *d) | |
| VMat (const VMat &d) | |
| VMat (const Mat &datamat) | |
| Convenience constructor: will use an MemoryVMatrix built from datamat. | |
| int | length () const |
| int | width () const |
| string | fieldName (int fieldindex) const |
| int | getFieldIndex (const string &fieldname_or_num) const |
| real | operator() (int i, int j) const |
| VVec | operator() (int i) const |
| Vec | getColumn (int i) const |
| Vec | getSubRow (int i, int s) const |
| VMat | subMat (int i, int j, int l, int w) const |
| VMat | subMatRows (int i, int l) const |
| VMat | subMatColumns (int j, int w) const |
| void | getExample (int i, Vec &input, Vec &target, real &weight) |
| VMat | row (int i) const |
| VMat | firstRow () const |
| VMat | lastRow () const |
| VMat | column (int j) const |
| VMat | firstColumn () const |
| VMat | lastColumn () const |
| Mat | toMat () const |
| VMat | rows (TVec< int > rows_indices) const |
| Returns a VMatrix made of only the specified rows. | |
| VMat | rows (Vec rows_indices) const |
| Returns a VMatrix made of only the specified rows. | |
| VMat | rows (const string &indexfile) const |
| Returns a VMatrix made of only the rows specified in the indexfile (see IntVecFile). | |
| VMat | columns (TVec< int > columns_indices) const |
| Returns a VMatrix made of only the specified columns. | |
| VMat | columns (Vec columns_indices) const |
| Returns a VMatrix made of only the specified columns. | |
| operator Mat () const | |
| void | save (const string &filename) const |
| void | precompute () |
| Will copy a precomputed version of the whole VMat into memory and replace the current pointer to point to the corresponding MemoryVMatrix. | |
| void | precompute (const string &pmatfile, bool use_existing_file=false) |
| void | print (ostream &out) const |
| ~VMat () | |
|
|
VMat *.
|
|
|
|
|
|
|
|
|
Convenience constructor: will use an MemoryVMatrix built from datamat.
Definition at line 59 of file VMat.cc. References PLearn::Mat. |
|
|
|
|
|
Definition at line 96 of file VMat.h. References column(). Referenced by column(). |
|
|
Returns a VMatrix made of only the specified columns.
|
|
|
Returns a VMatrix made of only the specified columns.
Definition at line 78 of file VMat.cc. Referenced by PLearn::TestDependencyCommand::run(), and PLearn::viewVMat(). |
|
|
Definition at line 73 of file VMat.h. References PLearn::VMatrix::fieldName(), and fieldName(). Referenced by PLearn::JoinVMatrix::build_(), PLearn::VMatLanguage::compileStream(), PLearn::displayBasicStats(), fieldName(), PLearn::VVMatrix::generateFilterIndexFile(), PLearn::VMatLanguage::preprocess(), PLearn::TestDependencyCommand::run(), PLearn::TestDependenciesCommand::run(), PLearn::viewVMat(), and PLearn::vmatmain(). |
|
|
|
|
|
|
|
|
Definition at line 82 of file VMat.h. References PLearn::VMatrix::getColumn(), getColumn(), and PLearn::VMatrix::length(). Referenced by getColumn(), PLearn::ForwardVMatrix::getColumn(), PLearn::TransposeVMatrix::getNewRow(), PLearn::KolmogorovSmirnovCommand::run(), and PLearn::HistogramDistribution::train(). |
|
||||||||||||||||||||
|
|
Definition at line 76 of file VMat.h. References PLearn::VMatrix::getFieldIndex(), and getFieldIndex(). Referenced by PLearn::SelectColumnsVMatrix::build_(), PLearn::DatedJoinVMatrix::build_(), getFieldIndex(), and PLearn::viewVMat(). |
|
||||||||||||
|
|
Definition at line 98 of file VMat.h. References width(). Referenced by PLearn::fullyRebalance2Classes(), and PLearn::rebalanceNClasses(). |
|
|
Definition at line 95 of file VMat.h. References length(). |
|
|
|
Definition at line 114 of file VMat.h. References PLearn::VMatrix::toMat(). |
|
|
Definition at line 81 of file VMat.h. References operator()(). |
|
||||||||||||
|
Definition at line 80 of file VMat.h. References PLearn::VMatrix::get(), and operator()(). Referenced by operator()(). |
|
||||||||||||
|
will copy a precomputed version of the whole VMat to the given file and replace the current pointer to point to the corresponding FileVMatrix For fast access, make sure the file is on a local Disk rather than on a Network Mounted File System. If use_existing_file is true, it will use the existing file (from a previous precomputation for instance) rather than overwriting it (make sure the file indeed contains what you expect!) Definition at line 101 of file VMat.cc. References PLearn::file_exists(), and PLearn::save(). |
|
|
Will copy a precomputed version of the whole VMat into memory and replace the current pointer to point to the corresponding MemoryVMatrix. Note that some info will be lost (like fields infos): check the .cc to understand why. Definition at line 87 of file VMat.cc. References PLearn::Mat. Referenced by PLearn::StackedLearner::train(). |
|
|
Definition at line 133 of file VMat.h. References PLearn::VMatrix::print(). Referenced by PLearn::operator<<(). |
|
|
Definition at line 93 of file VMat.h. References row(). Referenced by row(). |
|
|
Returns a VMatrix made of only the rows specified in the indexfile (see IntVecFile).
|
|
|
Returns a VMatrix made of only the specified rows.
Definition at line 72 of file VMat.cc. References PLearn::Vec. |
|
|
Returns a VMatrix made of only the specified rows.
Definition at line 69 of file VMat.cc. Referenced by PLearn::bootstrap(), PLearn::filter(), PLearn::fullyRebalance2Classes(), PLearn::grep(), PLearn::randomSplit(), PLearn::rebalanceNClasses(), PLearn::shuffle(), PLearn::split(), PLearn::temporalThreshold(), and PLearn::ClassifierFromDensity::train(). |
|
|
Definition at line 115 of file VMat.h. References PLearn::VMatrix::save(). Referenced by PLearn::fullyRebalance2Classes(), and PLearn::ForwardVMatrix::save(). |
|
||||||||||||||||||||
|
Definition at line 85 of file VMat.h. References PLearn::VMatrix::subMat(). Referenced by PLearn::ShiftAndRescaleVMatrix::build_(), PLearn::normalize(), PLearn::TestDependenciesCommand::run(), PLearn::SubVMatrix::subMat(), PLearn::ForwardVMatrix::subMat(), PLearn::MovingAverage::test(), and PLearn::MovingAverage::train(). |
|
||||||||||||
|
||||||||||||
|
|
1.3.7