public class WeightedRVFDataset<L,F> extends RVFDataset<L,F>
data, featureIndex, labelIndex, labels, size
Modifier | Constructor and Description |
---|---|
|
WeightedRVFDataset() |
protected |
WeightedRVFDataset(Index<L> labelIndex,
int[] trainLabels,
Index<F> featureIndex,
int[][] trainData,
double[][] trainValues,
float[] trainWeights) |
Modifier and Type | Method and Description |
---|---|
void |
add(Datum<L,F> d) |
void |
add(Datum<L,F> d,
java.lang.String src,
java.lang.String id) |
void |
add(RVFDatum<L,F> d,
float weight)
Add a datum, with a given weight.
|
float[] |
getWeights()
Get the weight array for this dataset.
|
addAll, addAllWithSourcesAndIds, applyFeatureCountThreshold, applyFeatureMaxCountThreshold, clear, clear, ensureRealValues, getDatum, getRVFDatum, getRVFDatumId, getRVFDatumSource, getRVFDatumWithId, getValuesArray, initialize, iterator, main, printFullFeatureMatrix, printFullFeatureMatrixWithValues, printSparseFeatureMatrix, printSparseFeatureMatrix, printSparseFeatureValues, printSparseFeatureValues, randomize, readSVMLightFormat, readSVMLightFormat, readSVMLightFormat, readSVMLightFormat, scaleDataset, scaleDatasetGaussian, scaleDatum, scaleDatumGaussian, scaleFeatures, scaleFeaturesGaussian, selectFeaturesFromSet, shuffleWithSideInformation, split, split, summaryStatistics, svmLightLineToRVFDatum, toString, toSummaryString, writeSVMLightFormat, writeSVMLightFormat
featureIndex, getDataArray, getFeatureCounts, getLabelsArray, labelIndex, labelIterator, makeSvmLabelMap, mapDataset, mapDataset, mapDatum, numClasses, numDatumsPerLabel, numFeatures, numFeatureTokens, numFeatureTypes, printSVMLightFormat, printSVMLightFormat, retainFeatures, sampleDataset, size, splitOutFold, trimData, trimLabels, trimToSize, trimToSize, trimToSize
public float[] getWeights()
LogConditionalObjectiveFunction
.public void add(RVFDatum<L,F> d, float weight)
d
- The datum to add.weight
- The weight of this datum.