public class BRISMFPredictor extends AbstractOptionHandler implements RatingPredictor
Parameters:
| Modifier and Type | Field and Description |
|---|---|
ClassOption |
dataOption |
IntOption |
featuresOption |
IntOption |
iterationsOption |
FloatOption |
lRateOption |
FloatOption |
rFactorOption |
protected BRISMFPredictor |
rp |
classOptionNamesToPreparedObjects, options| Constructor and Description |
|---|
BRISMFPredictor() |
| Modifier and Type | Method and Description |
|---|---|
RecommenderData |
getData() |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
predictRating(Integer user,
Integer item) |
double |
predictRating(int userID,
int itemID) |
List<Double> |
predictRatings(int userID,
List<Integer> itemIDS) |
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
train() |
copy, discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUsecopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmeasureByteSizeprotected BRISMFPredictor rp
public IntOption featuresOption
public FloatOption lRateOption
public FloatOption rFactorOption
public IntOption iterationsOption
public ClassOption dataOption
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandlerprepareForUseImpl
and not prepareForUse since
prepareForUse calls prepareForUseImpl.prepareForUseImpl in class AbstractOptionHandlermonitor - the TaskMonitor to userepository - the ObjectRepository to usepublic void getDescription(StringBuilder sb, int indent)
MOAObjectAbstractMOAObject.toString
to give a string representation of the object.getDescription in interface MOAObjectsb - the stringbuilder to add the descriptionindent - the number of characters to indentpublic RecommenderData getData()
getData in interface RatingPredictorpublic double predictRating(int userID,
int itemID)
predictRating in interface RatingPredictorpublic List<Double> predictRatings(int userID, List<Integer> itemIDS)
predictRatings in interface RatingPredictorpublic void train()
train in interface RatingPredictorCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.