|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.comp.nlp.ims.classifiers.CLibLinearTrainer
public class CLibLinearTrainer
call liblinear classifier to train model for instances of a lexelt.
Field Summary | |
---|---|
protected double |
m_Bias
|
Constructor Summary | |
---|---|
CLibLinearTrainer()
|
Method Summary | |
---|---|
liblinear.Parameter |
getParam()
get parameters |
void |
setOptions(java.lang.String[] options)
set options |
void |
setParam(liblinear.Parameter p_Param)
set parameters |
java.lang.Object |
train(java.lang.Object p_Lexelt)
train a model with instances in p_Lexelt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double m_Bias
Constructor Detail |
---|
public CLibLinearTrainer()
Method Detail |
---|
public void setParam(liblinear.Parameter p_Param)
p_Param
- paramterspublic liblinear.Parameter getParam()
public void setOptions(java.lang.String[] options)
IModelTrainer
setOptions
in interface IModelTrainer
options
- optionspublic java.lang.Object train(java.lang.Object p_Lexelt) throws java.lang.Exception
IModelTrainer
train
in interface IModelTrainer
p_Lexelt
- lexelt
java.lang.Exception
- train exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |