public class SVMLightParser extends LibSVMParser
BaseClassifierEvaluationParser.InstanceClassInfo
ClassifierEvaluationParser.ParseOption
labelsPattern, pCost, pDegree, pGamma, pKernel, pWeight, totalSVPattern
wsDotPattern, wsPattern
NO, YES
Constructor and Description |
---|
SVMLightParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
parsePredictions(String predictionFile,
String instanceFile,
Properties props,
String instanceIdFile,
SVMClassifierEvaluation eval)
Parse svm-classify input (instance file) and predictions (prediction
file).
|
protected void |
parseResults(File dataDir,
File outputDir,
String model,
String predict,
SVMClassifierEvaluation eval,
Properties props)
parse output.txt - contains vcdim and number support vectors
|
protected void |
storeResults(File dataDir,
Properties props,
SVMClassifierEvaluation eval)
store semi supervised results.
|
initClassifierEval, parseClassIds, parseDirectory, parseModel, parseOptions
checkFileRead, extractFirstToken, getClassifierEvaluationDao, getFileBaseName, initClassifierEvaluation, initClassifierEvaluationFromProperties, loadClassIdMap, loadClassInfo, loadInstanceClassInfo, loadProps, parseDoubleOption, parseInstanceIds, parseIntOption, setClassifierEvaluationDao, storeSemiSupervised, updateSemiSupervisedPredictions, updateSemiSupervisedPredictions
protected void parsePredictions(String predictionFile, String instanceFile, Properties props, String instanceIdFile, SVMClassifierEvaluation eval) throws IOException
parsePredictions
in class LibSVMParser
predictionFile
- instanceFile
- instanceIdFile
- instance ids corresponding to lines in input data fileIOException
protected void parseResults(File dataDir, File outputDir, String model, String predict, SVMClassifierEvaluation eval, Properties props) throws IOException
parseResults
in class LibSVMParser
IOException
protected void storeResults(File dataDir, Properties props, SVMClassifierEvaluation eval)
storeResults
in class LibSVMParser
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.