sit
Class AvgLearner

java.lang.Object
  extended by sit.AvgLearner
All Implemented Interfaces:
MTLearner

public class AvgLearner
extends java.lang.Object
implements MTLearner

Author:
beau Returns as prediction the average of all training instances

Constructor Summary
AvgLearner()
           
 
Method Summary
 void init(clus.data.rows.RowData data, clus.main.Settings sett)
          Initialize the MTLearner
 void initXVal(int nrFolds)
           
 clus.data.rows.RowData LearnModel(TargetSet targets)
          Learns a model for the complete trainingset and returns predictions for the testset
 void setData(clus.data.rows.RowData data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sit.MTLearner
LearnModel, setTestData
 

Constructor Detail

AvgLearner

public AvgLearner()
Method Detail

init

public void init(clus.data.rows.RowData data,
                 clus.main.Settings sett)
Description copied from interface: MTLearner
Initialize the MTLearner

Specified by:
init in interface MTLearner
Parameters:
data - The dataset
sett - The settings file

LearnModel

public clus.data.rows.RowData LearnModel(TargetSet targets)
Description copied from interface: MTLearner
Learns a model for the complete trainingset and returns predictions for the testset

Specified by:
LearnModel in interface MTLearner
Parameters:
targets - The targets used in the MT model
Returns:
predictions on the the testset

setData

public void setData(clus.data.rows.RowData data)
Specified by:
setData in interface MTLearner

initXVal

public void initXVal(int nrFolds)
Specified by:
initXVal in interface MTLearner