org.opentox.toxotis.training
Class Trainer

java.lang.Object
  extended by org.opentox.toxotis.training.Trainer

public class Trainer
extends Object

Author:
Charalampos Chomenides, Pantelis Sopasakis

Constructor Summary
Trainer(Algorithm algorithm, Dataset dataset, Feature predictionFeature)
           
 
Method Summary
 Algorithm getAlgorithm()
           
 Dataset getDataset()
          The dataset used to train the model.
 Feature getPredictionFeature()
           
 void setAlgorithm(Algorithm algorithm)
           
 void setDataset(Dataset dataset)
           
 void setPredictionFeature(Feature predictionFeature)
           
 Task train(AuthenticationToken token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trainer

public Trainer(Algorithm algorithm,
               Dataset dataset,
               Feature predictionFeature)
Method Detail

getAlgorithm

public Algorithm getAlgorithm()

setAlgorithm

public void setAlgorithm(Algorithm algorithm)

getDataset

public Dataset getDataset()
The dataset used to train the model.

Returns:
Training Dataset.

setDataset

public void setDataset(Dataset dataset)

getPredictionFeature

public Feature getPredictionFeature()

setPredictionFeature

public void setPredictionFeature(Feature predictionFeature)

train

public Task train(AuthenticationToken token)
           throws ServiceInvocationException
Throws:
ServiceInvocationException


Copyright © 2011-2012 OpenTox. All Rights Reserved.