Interface DataSet

  • All Known Implementing Classes:
    ManualDataSet, RandomSplitDataSet, TrainTestFilesDataSet

    public interface DataSet
    This interface works as a bridge between the raw file and the DataModel. This interface ensures collaborative filtering ratings separated into two groups: no-test and test. The ratings must be returned in DataSetEntries which structure is conformed by user, item and rating.
    • Method Detail

      • getRatingsIterator

        Iterator<DataSetEntry> getRatingsIterator()
        This method generates an iterator to navigate through the raw ratings stored in DataSetEntries.
        Returns:
        Iterator of ratings
      • getNumberOfRatings

        int getNumberOfRatings()
        This method indicates the number of (training) ratings.
        Returns:
        Number of (training) ratings
      • getTestRatingsIterator

        Iterator<DataSetEntry> getTestRatingsIterator()
        This method generates an iterator to navigate through the raw test ratings stored in DataSetEntries.
        Returns:
        Iterator of test ratings
      • getNumberOfTestRatings

        int getNumberOfTestRatings()
        This method indicates the number of test ratings.
        Returns:
        Number of test ratings