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, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
measureByteSize
protected BRISMFPredictor rp
public IntOption featuresOption
public FloatOption lRateOption
public FloatOption rFactorOption
public IntOption iterationsOption
public ClassOption dataOption
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic RecommenderData getData()
getData
in interface RatingPredictor
public double predictRating(int userID, int itemID)
predictRating
in interface RatingPredictor
public List<Double> predictRatings(int userID, List<Integer> itemIDS)
predictRatings
in interface RatingPredictor
public void train()
train
in interface RatingPredictor
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.