edu.berkeley.compbio.jlibsvm
Class SolutionModel<L extends java.lang.Comparable,P>

java.lang.Object
  extended by edu.berkeley.compbio.jlibsvm.SvmContext
      extended by 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
 
Constructor Summary
SolutionModel()
           
 
Method Summary
abstract  edu.berkeley.compbio.ml.CrossValidationResults getCrossValidationResults()
           
 java.util.Collection<L> getLabels()
           
static SolutionModel identifyTypeAndLoad(java.lang.String model_file_name)
           
protected abstract  void readSupportVectors(java.io.BufferedReader fp)
           
 void save(java.lang.String model_file_name)
           
 void setSvmType(java.lang.String svmType)
           
 void writeToStream(java.io.DataOutputStream fp)
          This really should be addToProps, for symmetry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

svmType

public java.lang.String svmType
names the SVM that was used to produce this model; used only for writeToStream

Constructor Detail

SolutionModel

public SolutionModel()
Method Detail

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.