MyMediaLite  3.11
Public Member Functions | Properties | List of all members
PosOnlyFeedbackCrossValidationSplit< T > Class Template Reference

K-fold cross-validation split for item prediction from implicit feedback More...

Inheritance diagram for PosOnlyFeedbackCrossValidationSplit< T >:
ISplit< IPosOnlyFeedback >

Public Member Functions

 PosOnlyFeedbackCrossValidationSplit (IPosOnlyFeedback feedback, uint num_folds)
 Create a k-fold split of positive-only item prediction data More...
 

Properties

uint NumberOfFolds [get]
 
IList< IPosOnlyFeedbackTest [get]
 
IList< IPosOnlyFeedbackTrain [get]
 

Detailed Description

K-fold cross-validation split for item prediction from implicit feedback

Items with less than k events associated are ignored for testing and always assigned to the training set.

The dataset must not be modified after the split - this would lead to undefined behavior.

Type Constraints
T :IPosOnlyFeedback 
T :new() 

Constructor & Destructor Documentation

PosOnlyFeedbackCrossValidationSplit ( IPosOnlyFeedback  feedback,
uint  num_folds 
)
inline

Create a k-fold split of positive-only item prediction data

See the class description for details.

Parameters
feedbackthe dataset
num_foldsthe number of folds

The documentation for this class was generated from the following file: