edu.berkeley.compbio.jlibsvm
Class SolutionModel<L extends java.lang.Comparable,P>
java.lang.Object
edu.berkeley.compbio.jlibsvm.SvmContext
edu.berkeley.compbio.jlibsvm.SolutionModel<L,P>
- Direct Known Subclasses:
- AlphaModel, MultiClassModel
public abstract class SolutionModel<L extends java.lang.Comparable,P>
- extends SvmContext
- Version:
- $Id$
- Author:
- David Soergel
|
Field Summary |
java.lang.String |
svmType
names the SVM that was used to produce this model; used only for writeToStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
svmType
public java.lang.String svmType
- names the SVM that was used to produce this model; used only for writeToStream
SolutionModel
public SolutionModel()
getCrossValidationResults
public abstract edu.berkeley.compbio.ml.CrossValidationResults getCrossValidationResults()
identifyTypeAndLoad
public static SolutionModel identifyTypeAndLoad(java.lang.String model_file_name)
readSupportVectors
protected abstract void readSupportVectors(java.io.BufferedReader fp)
throws java.io.IOException
- Throws:
java.io.IOException
setSvmType
public void setSvmType(java.lang.String svmType)
save
public void save(java.lang.String model_file_name)
throws java.io.IOException
- Throws:
java.io.IOException
writeToStream
public void writeToStream(java.io.DataOutputStream fp)
throws java.io.IOException
- This really should be addToProps, for symmetry
- Parameters:
fp -
- Throws:
java.io.IOException
getLabels
public java.util.Collection<L> getLabels()
Copyright © 2008-2010 Brenner Lab, UC Berkeley. All Rights Reserved.