Class TrainTestSets

java.lang.Object
com.groiss.ml.ds.TrainTestSets

public class TrainTestSets extends Object
A simple container for the split result of a DataSet into a train and a test set.
  • Constructor Details

    • TrainTestSets

      public TrainTestSets(DataSet trainSet, DataSet testSet)
      A new instance holding the passed train and test set
      Parameters:
      trainSet - a DataSet representing the train set
      testSet - a DataSet representing the test set
  • Method Details

    • trainSet

      public DataSet trainSet()
      Returns:
      the train set
    • testSet

      public DataSet testSet()
      Returns:
      the test set