|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.data.RatingsSimpleSplit
public class RatingsSimpleSplit
Simple split for rating prediction. Please note that simple splits are not the best/most realistic way of evaluating recommender system algorithms. In particular, chronological splits (see RatingsChronologicalSplit) are more realistic. The dataset must not be modified after the split - this would lead to undefined behavior.
Constructor Summary | |
---|---|
RatingsSimpleSplit(IRatings ratings,
double ratio)
Create a simple split of rating prediction data. |
Method Summary | |
---|---|
int |
numberOfFolds()
The number of folds in this split. |
java.util.List<IRatings> |
test()
Test data for the different folds. |
java.util.List<IRatings> |
train()
Training data for the different folds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RatingsSimpleSplit(IRatings ratings, double ratio)
ratings
- the datasetratio
- the ratio of ratings to use for validationMethod Detail |
---|
public int numberOfFolds()
ISplit
numberOfFolds
in interface ISplit<IRatings>
public java.util.List<IRatings> train()
ISplit
train
in interface ISplit<IRatings>
public java.util.List<IRatings> test()
ISplit
test
in interface ISplit<IRatings>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |