PLearn 0.1
Namespaces | Functions
VMat_operations.cc File Reference
#include "VMat.h"
#include "VMat_operations.h"
#include <plearn/math/random.h>
#include <plearn/io/TmpFilenames.h>
#include <plearn/io/IntVecFile.h>
Include dependency graph for VMat_operations.cc:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

VMat PLearn::grep (VMat d, int col, Vec values, bool exclude)
map< real, intPLearn::countOccurencesInColumn (VMat m, int col)
 returns a map mapping all different values appearing in column col to their number of occurences
map< real, TVec< int > > PLearn::indicesOfOccurencesInColumn (VMat m, int col)
 returns a map mapping all different values appearing in column col to a vector of the corresponding row indices in the VMat
VMat PLearn::grep (VMat d, int col, Vec values, const string &indexfile, bool exclude)
VMat PLearn::filter (VMat d, const string &indexfile)
VMat PLearn::shuffle (VMat d)
 returns a SelectRowsVMatrix that has d's rows shuffled
VMat PLearn::bootstrap (VMat d, bool reorder=true, bool norepeat=true)
 returns a SelectRowsVMatrix that has d's rows bootstrapped (sample with replacement and optionally re-ordered).
VMat PLearn::rebalanceNClasses (VMat inputs, int nclasses, const string &filename)
void PLearn::fullyRebalance2Classes (VMat inputs, const string &filename, bool save_indices=true)
 Rebalance a 2-class VMat such as to keep all the examples of the dominant class.
VMat PLearn::temporalThreshold (VMat distr, int threshold_date, bool is_before, int yyyymmdd_col)
VMat PLearn::temporalThreshold (VMat distr, int threshold_date, bool is_before, int yyyy_col, int mm_col, int dd_col)

Detailed Description

Definition in file VMat_operations.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines