public static class SVMLinFormatterFactory.SVMLinDataFormatter extends SemiLFormatterFactory.SemiLDataFormatter
instanceLabel
foldInstanceLabelMap
exportProperties, kernelUtil, labelToClassIndexMap, maxAttributeIndex, nominalAttributeMap, numericAttributeMap, outdir
ATTR_INSTANCE_ID, SCOPE, SCOPE_FOLD, SCOPE_LABEL
Constructor and Description |
---|
SVMLinDataFormatter(KernelUtil kernelUtil) |
Modifier and Type | Method and Description |
---|---|
protected void |
exportData(SparseData sparseData,
String label,
Integer run,
Integer fold) |
void |
initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap)
write a file with the attribute names corresponding to the indices in
the libsvm data file
|
exportFold, exportLabel, fillLabelToClassIndexMap, getTrainingClassMap, initializeExport, initializeLabel
clearFold, exportTransductiveData
clearLabel, exportDataForInstances, exportDataForLabel, writeLibsvmLine
addNumericAttribute, exportAttributeNames, exportAttributeNames, exportSparseMatrix, exportSparseRow, getSparseLineValues, updateLabelClassMapTransductive
public SVMLinDataFormatter(KernelUtil kernelUtil)
protected void exportData(SparseData sparseData, String label, Integer run, Integer fold) throws IOException
exportData
in class SemiLFormatterFactory.SemiLDataFormatter
IOException
public void initializeFold(SparseData sparseData, String label, Integer run, Integer fold, SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) throws IOException
LibSVMFormatterFactory.LibSVMFormatter
initializeFold
in interface SparseDataFormatter
initializeFold
in class SemiLFormatterFactory.SemiLDataFormatter
IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.