Modifier and Type | Method and Description |
---|---|
protected SparseData |
SparseDataExporterImpl.loadData(InstanceData instanceLabel,
String instanceNumericWordQuery,
String instanceNominalWordQuery,
String prepareScript,
String prepareScriptDelimiter,
BagOfWordsDecorator bDecorator,
String label,
Integer fold,
Integer run) |
Modifier and Type | Method and Description |
---|---|
protected void |
SparseDataExporterImpl.addNominalWordToInstance(SparseData sparseData,
long instanceId,
String word,
String wordValue) |
protected void |
SparseDataExporterImpl.addNumericWordToInstance(SparseData sparseData,
long instanceId,
String word,
double wordValue) |
protected int |
BaseSparseDataFormatter.exportAttributeNames(BufferedWriter w,
SparseData sparseData)
assign indices to each attribute.
|
protected void |
BaseSparseDataFormatter.exportAttributeNames(SparseData sparseData,
String label,
Integer run,
Integer fold) |
protected void |
SVMLinFormatterFactory.SVMLinDataFormatter.exportData(SparseData sparseData,
String label,
Integer run,
Integer fold) |
void |
SparseDataFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> sortedMap,
boolean train,
String label,
Integer run,
Integer fold)
export the fold train/test set.
|
protected void |
BaseSparseDataFormatter.exportSparseMatrix(String filename,
SparseData sparseData)
export sparse matrix data for use in matlab/R.
|
protected void |
BaseSparseDataFormatter.exportSparseRow(SparseData bagOfWordsData,
long instanceId,
BufferedWriter wData,
int row) |
protected void |
SparseDataExporterImpl.getNominalInstanceWords(String sql,
String prepareScript,
String prepareScriptDelimiter,
SparseData sparseData,
Map<String,Object> params) |
protected void |
SparseDataExporterImpl.getNumericInstanceWords(String sql,
String prepareScript,
String prepareScriptDelimiter,
SparseData sparseData,
Map<String,Object> params) |
protected SortedMap<Integer,Double> |
BaseSparseDataFormatter.getSparseLineValues(SparseData bagOfWordsData,
Map<String,Integer> numericAttributeMap,
Map<String,Map<String,Integer>> nominalAttributeMap,
long instanceId)
create a map of attribute index - attribute value for the given instance.
|
void |
BaseSparseDataFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData)
get needed properties out of outdir.
|
void |
SparseDataFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData)
initialize export - called once
|
void |
SparseDataFormatter.initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap)
initialize data structures for the fold that will be exported.
|
void |
SVMLinFormatterFactory.SVMLinDataFormatter.initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) |
void |
SparseDataFormatter.initializeLabel(String label,
SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances,
Properties properties,
SparseData sparseData) |
Modifier and Type | Method and Description |
---|---|
protected List<Long> |
LibSVMFormatterFactory.LibSVMFormatter.exportDataForInstances(SparseData bagOfWordsData,
SortedMap<Long,String> instanceClassMap,
com.google.common.collect.BiMap<String,Integer> classToIndexMap,
BufferedWriter wData,
BufferedWriter wId) |
protected void |
LibSVMFormatterFactory.LibSVMFormatter.exportDataForLabel(String filename,
String idFilename,
SparseData bagOfWordsData,
SortedMap<Long,String> instanceClassMap,
com.google.common.collect.BiMap<String,Integer> classToIndexMap)
Export data file and id file
|
void |
LibSVMFormatterFactory.LibSVMFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> instanceClassMap,
boolean train,
String label,
Integer run,
Integer fold)
export the given train/test set
|
void |
LibSVMFormatterFactory.LibSVMFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData) |
void |
LibSVMFormatterFactory.LibSVMFormatter.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
|
void |
LibSVMFormatterFactory.LibSVMFormatter.initializeLabel(String label,
SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances,
Properties properties,
SparseData sparseData) |
Modifier and Type | Method and Description |
---|---|
protected void |
SemiLFormatterFactory.SemiLDataFormatter.exportData(SparseData sparseData,
String label,
Integer run,
Integer fold) |
void |
SemiLFormatterFactory.SemiLDataFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> instanceClassMap,
boolean train,
String label,
Integer run,
Integer fold) |
void |
SemiLFormatterFactory.SemiLDataFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData)
write distance up to 6 digit precision.
|
void |
SemiLFormatterFactory.SemiLDataFormatter.initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) |
void |
SemiLFormatterFactory.SemiLDataFormatter.initializeLabel(String label,
SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances,
Properties properties,
SparseData sparseData) |
Modifier and Type | Method and Description |
---|---|
protected int |
SparseMatrixFormatterFactory.SparseMatrixDataFormatter.exportAttributeNames(BufferedWriter w,
SparseData sparseData)
add instance_id as first in the map of numeric attribute
|
void |
SparseMatrixFormatterFactory.SparseMatrixDataFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> instanceClassMap,
boolean train,
String label,
Integer run,
Integer fold) |
protected SortedMap<Integer,Double> |
SparseMatrixFormatterFactory.SparseMatrixDataFormatter.getSparseLineValues(SparseData bagOfWordsData,
Map<String,Integer> numericAttributeMap,
Map<String,Map<String,Integer>> nominalAttributeMap,
long instanceId)
add instance_id to sparse line values
|
void |
SparseMatrixFormatterFactory.SparseMatrixDataFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData) |
void |
SparseMatrixFormatterFactory.SparseMatrixDataFormatter.initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) |
void |
SparseMatrixFormatterFactory.SparseMatrixDataFormatter.initializeLabel(String label,
SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances,
Properties properties,
SparseData sparseData) |
Modifier and Type | Method and Description |
---|---|
protected void |
SGTFormatterFactory.SGTFormatter.exportData(SparseData sparseData,
String label,
Integer run,
Integer fold) |
void |
SVMLightFormatterFactory.SVMLightFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> instanceClassMap,
boolean train,
String label,
Integer run,
Integer fold)
export the given train/test set
|
protected List<Long> |
SVMLightFormatterFactory.SVMLightFormatter.exportTransductiveData(String filename,
String idFilename,
SparseData bagOfWordsData,
SortedMap<Long,String> trainClassMap,
Set<Long> testInstances,
com.google.common.collect.BiMap<String,Integer> classToIndexMap)
Export data file and id file
|
void |
SVMLightFormatterFactory.SVMLightFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData)
add the "0" class for transductive learning
|
void |
SVMLightFormatterFactory.SVMLightFormatter.initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) |
Modifier and Type | Method and Description |
---|---|
void |
WekaAttributeEvaluatorImpl.WekaAttributeEvaluatorFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> instanceClasses,
boolean train,
String label,
Integer run,
Integer fold) |
void |
WekaFormatterFactory.WekaFormatter.exportFold(SparseData sparseData,
SortedMap<Long,String> sortedMap,
boolean train,
String label,
Integer run,
Integer fold) |
protected void |
WekaFormatterFactory.WekaFormatter.initializeAttributes(SparseData bagOfWordsData,
SortedSet<String> classNames)
initialize attributes
|
void |
WekaFormatterFactory.WekaFormatter.initializeExport(InstanceData instanceLabel,
Properties properties,
SparseData sparseData) |
void |
WekaFormatterFactory.WekaFormatter.initializeFold(SparseData sparseData,
String label,
Integer run,
Integer fold,
SortedMap<Boolean,SortedMap<Long,String>> foldInstanceLabelMap) |
weka.core.Instances |
WekaFormatterFactory.WekaFormatter.initializeInstances(SparseData sparseData,
SortedMap<Long,String> instanceClasses,
boolean train,
String label,
Integer run,
Integer fold)
initialize the weka Instances
|
void |
WekaFormatterFactory.WekaFormatter.initializeLabel(String label,
SortedMap<Integer,SortedMap<Integer,SortedMap<Boolean,SortedMap<Long,String>>>> labelInstances,
Properties properties,
SparseData sparseData)
initialize attributes on a per-label basis even if the data is the
same across all labels.
|
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.