edu.qut.cs.rcmd.experiment.common
Class BaseTrainingUserExperimentProfileConvertFunction
java.lang.Object
edu.qut.cs.rcmd.experiment.common.BaseTrainingUserExperimentProfileConvertFunction
- All Implemented Interfaces:
- com.google.common.base.Function<org.apache.mahout.cf.taste.model.PreferenceArray,TrainingUserExperimentProfile>
- Direct Known Subclasses:
- RatioBasedTrainingUserExperimentProfileConvertFunction, TrainingUserExperimentProfileConvertFunction
public abstract class BaseTrainingUserExperimentProfileConvertFunction
- extends Object
- implements com.google.common.base.Function<org.apache.mahout.cf.taste.model.PreferenceArray,TrainingUserExperimentProfile>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
BaseTrainingUserExperimentProfileConvertFunction
public BaseTrainingUserExperimentProfileConvertFunction()
apply
public TrainingUserExperimentProfile apply(org.apache.mahout.cf.taste.model.PreferenceArray preferenceArray)
- Specified by:
apply
in interface com.google.common.base.Function<org.apache.mahout.cf.taste.model.PreferenceArray,TrainingUserExperimentProfile>
isBooleanPreferences
protected boolean isBooleanPreferences(org.apache.mahout.cf.taste.model.PreferenceArray preferenceArray)
preferenceArrayFilter
protected abstract boolean preferenceArrayFilter(org.apache.mahout.cf.taste.model.PreferenceArray preferenceArray)
buildTrainingUserExperimentProfile
protected abstract TrainingUserExperimentProfile buildTrainingUserExperimentProfile(org.apache.mahout.cf.taste.model.PreferenceArray preferenceArray)
buildBooleanTrainingUserExperimentProfile
protected abstract TrainingUserExperimentProfile buildBooleanTrainingUserExperimentProfile(org.apache.mahout.cf.taste.model.PreferenceArray preferenceArray)
getInstance
protected org.apache.mahout.cf.taste.model.PreferenceArray getInstance(Class<? extends org.apache.mahout.cf.taste.model.PreferenceArray> clazz,
List<org.apache.mahout.cf.taste.model.Preference> prefs)
Copyright © 2012. All Rights Reserved.