sit
Interface MTLearner

All Known Implementing Classes:
AvgLearner

public interface MTLearner


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
 clus.data.rows.RowData LearnModel(TargetSet targets, int foldNr)
          Learns a model for fold foldNr and returns the predictions for the remaining data
 void setData(clus.data.rows.RowData data)
           
 void setTestData(clus.data.rows.RowData test)
           
 

Method Detail

init

void init(clus.data.rows.RowData data,
          clus.main.Settings sett)
Initialize the MTLearner

Parameters:
data - The dataset
sett - The settings file

LearnModel

clus.data.rows.RowData LearnModel(TargetSet targets,
                                  int foldNr)
Learns a model for fold foldNr and returns the predictions for the remaining data

Parameters:
targets - The targets used in the MT model
foldNr - The fold to learn a model for
Returns:
predictions for the remaining data (data-fold)

LearnModel

clus.data.rows.RowData LearnModel(TargetSet targets)
                                  throws java.lang.Exception
Learns a model for the complete trainingset and returns predictions for the testset

Parameters:
targets - The targets used in the MT model
Returns:
predictions on the the testset
Throws:
throws - an exception if the testset is not set by setTestData();
java.lang.Exception

setData

void setData(clus.data.rows.RowData data)

setTestData

void setTestData(clus.data.rows.RowData test)

initXVal

void initXVal(int nrFolds)