public class WekaAttributeEvaluatorImpl extends Object implements WekaAttributeEvaluator
Modifier and Type | Class and Description |
---|---|
class |
WekaAttributeEvaluatorImpl.WekaAttributeEvaluatorFormatter |
Constructor and Description |
---|
WekaAttributeEvaluatorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
evaluateAttributes(String corpusName,
String featureSetName,
String splitName,
weka.core.Instances inst,
String label,
Integer run,
Integer fold)
evaluate attributes, store in db
|
void |
evaluateAttributesFromFile(String corpusName,
String featureSetName,
String splitName,
String file)
evaluate attributes in an arff file, save rank in db
|
void |
evaluateAttributesFromProps(String corpusName,
String splitName,
String featureSetName,
Properties props)
create instances from properties file, evaluate, save in db
|
weka.attributeSelection.ASEvaluation |
getAsEvaluation() |
weka.attributeSelection.AttributeSelection |
getAttributeSelection() |
ClassifierEvaluationDao |
getClassifierEvaluationDao() |
KernelUtil |
getKernelUtil() |
SparseDataExporter |
getSparseDataExporter() |
FeatureEvaluation |
initializeFeatureEvaluation(String corpusName,
String featureSetName,
String splitName,
String label,
Integer run,
Integer fold) |
static void |
main(String[] args) |
void |
setAsEvaluation(weka.attributeSelection.ASEvaluation asEvaluation) |
void |
setAttributeSelection(weka.attributeSelection.AttributeSelection attributeSelection) |
void |
setClassifierEvaluationDao(ClassifierEvaluationDao classifierEvaluationDao) |
void |
setKernelUtil(KernelUtil kernelUtil) |
void |
setSparseDataExporter(SparseDataExporter sparseDataExporter) |
public void evaluateAttributes(String corpusName, String featureSetName, String splitName, weka.core.Instances inst, String label, Integer run, Integer fold) throws Exception
inst
- instanceslabel
- FeatureEvaluation.getLabel()
run
- ClassifierEvaluation.getRun()
to map to foldfold
- ClassifierEvaluation.getFold()
to map to foldException
public void evaluateAttributesFromFile(String corpusName, String featureSetName, String splitName, String file) throws Exception
WekaAttributeEvaluator
evaluateAttributesFromFile
in interface WekaAttributeEvaluator
corpusName
- cv_fold.nameException
public void evaluateAttributesFromProps(String corpusName, String splitName, String featureSetName, Properties props) throws Exception
WekaAttributeEvaluator
evaluateAttributesFromProps
in interface WekaAttributeEvaluator
corpusName
- cv_fold.nameException
public weka.attributeSelection.ASEvaluation getAsEvaluation()
public weka.attributeSelection.AttributeSelection getAttributeSelection()
public ClassifierEvaluationDao getClassifierEvaluationDao()
public KernelUtil getKernelUtil()
public SparseDataExporter getSparseDataExporter()
public FeatureEvaluation initializeFeatureEvaluation(String corpusName, String featureSetName, String splitName, String label, Integer run, Integer fold)
public void setAsEvaluation(weka.attributeSelection.ASEvaluation asEvaluation)
public void setAttributeSelection(weka.attributeSelection.AttributeSelection attributeSelection)
public void setClassifierEvaluationDao(ClassifierEvaluationDao classifierEvaluationDao)
public void setKernelUtil(KernelUtil kernelUtil)
public void setSparseDataExporter(SparseDataExporter sparseDataExporter)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.