|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opentox.error.ErrorSource
org.opentox.algorithm.trainer.AbstractTrainer
org.opentox.algorithm.trainer.SvcTrainer
public class SvcTrainer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.opentox.algorithm.trainer.AbstractTrainer |
---|
AbstractTrainer.Classification, AbstractTrainer.Regression |
Field Summary | |
---|---|
private java.lang.String |
cacheSize
The cahed memory used in model training. |
private java.lang.String |
coeff0
The bias of the support vector model. |
private java.lang.String |
cost
The Cost coefficient. |
private double |
d
|
private weka.core.Instances |
dataInstances
An Instances object used to store the data. |
private java.lang.String |
degree
The degree of the polynomial kernel (when used). |
private java.lang.String |
epsilon
The parameter epsilon used in SVM models. |
private java.lang.String |
gamma
The kernel parameter gamma used in various kernel functions. |
private int |
i
|
private java.lang.String |
kernel
The kernel used in the SVM model. |
private int |
model_id
The id of the generated model. |
private static long |
serialVersionUID
|
private java.lang.String |
targetAttribute
The name of the target attribute which normally is the URI of a feature definition. |
private java.lang.String |
tolerance
The tolerance used in model training. |
Fields inherited from class org.opentox.algorithm.trainer.AbstractTrainer |
---|
dataseturi, form, resource, targeturi |
Fields inherited from class org.opentox.error.ErrorSource |
---|
errorRep |
Constructor Summary | |
---|---|
SvcTrainer(org.restlet.data.Form form,
org.restlet.resource.ServerResource resource)
Constructor of the trainer. |
Method Summary | |
---|---|
ErrorRepresentation |
checkParameters()
Check the consistency of the posted parameters. |
org.restlet.representation.Representation |
train()
Train a support vector machine classification model. |
Methods inherited from class org.opentox.error.ErrorSource |
---|
getErrorRep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opentox.interfaces.IProne2Error |
---|
getErrorRep |
Field Detail |
---|
private static final long serialVersionUID
private int i
private double d
private java.lang.String targetAttribute
private java.lang.String kernel
private java.lang.String degree
private java.lang.String cacheSize
private java.lang.String cost
private java.lang.String epsilon
private java.lang.String gamma
private java.lang.String coeff0
private java.lang.String tolerance
private int model_id
private weka.core.Instances dataInstances
Constructor Detail |
---|
public SvcTrainer(org.restlet.data.Form form, org.restlet.resource.ServerResource resource)
form
- The posted data.Method Detail |
---|
public org.restlet.representation.Representation train()
public ErrorRepresentation checkParameters()
ITrainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |