public class BaselinePredictor extends AbstractOptionHandler implements RatingPredictor
| Modifier and Type | Field and Description |
|---|---|
ClassOption |
dataOption |
protected BaselinePredictor |
rp |
classOptionNamesToPreparedObjects, options| Constructor and Description |
|---|
BaselinePredictor() |
| 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 BaselinePredictor rp
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.