GClasses
|
This class divides a matrix into two parts. The left-most columns are the features. The right-most columns are the labels.
#include <GMatrix.h>
Public Member Functions | |
GDataColSplitter (const GMatrix &data, size_t labels) | |
Splits a dataset into a feature matrix and a label matrix. The right-most "labels" columns are put in the label matrix. More... | |
~GDataColSplitter () | |
GMatrix & | features () |
Returns a reference to the feature matrix. More... | |
GMatrix & | labels () |
Returns a reference to the label matrix. More... | |
Protected Attributes | |
GMatrix * | m_pFeatures |
GMatrix * | m_pLabels |
GClasses::GDataColSplitter::GDataColSplitter | ( | const GMatrix & | data, |
size_t | labels | ||
) |
Splits a dataset into a feature matrix and a label matrix. The right-most "labels" columns are put in the label matrix.
GClasses::GDataColSplitter::~GDataColSplitter | ( | ) |
|
inline |
Returns a reference to the feature matrix.
|
inline |
Returns a reference to the label matrix.
|
protected |
|
protected |