|
__len__(self)
the number of patterns in the dataset |
source code
|
|
|
|
|
|
|
|
|
|
|
initializeDataMatrix(self,
numPatterns,
numFeatures) |
source code
|
|
|
|
|
|
|
|
|
|
|
copy(self,
other,
patternsToCopy,
deepcopy)
deepcopy is performed by default, so the deepcopy flag is ignored |
source code
|
|
|
eliminateFeatures(self,
featureList)
eliminate a list of features from a dataset
Input:
featureList - a list of features to eliminate; these are numbers
between 0 and numFeatures-1 (indices of features, not their IDs) |
source code
|
|
|
|
|
|
|
normalize(self,
p=1)
normalize dataset according to the p-norm, p=1,2 |
source code
|
|
|
scale(self,
w)
rescale the columns of the data matrix by a weight vector w:
set X[i][j] = X[i][j] / w[j] |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
csvwrite(self,
fileName,
delim=' ',
idCol=-1) |
source code
|
|