public class Predictor
extends IPredictor.Stub
Modifier and Type | Class and Description |
---|---|
static interface |
IBordeauxLearner.ModelChangeCallback |
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_SEPARATOR |
static String |
PREVIOUS_SAMPLE |
static String |
SET_FEATURE |
static String |
SET_PAIRED_FEATURES |
static String |
USE_HISTORY |
Constructor and Description |
---|
Predictor() |
Modifier and Type | Method and Description |
---|---|
IBinder |
getBinder() |
byte[] |
getModel() |
List<StringFloat> |
getTopCandidates(int topK)
return probabilty of an exmple using the histogram
|
void |
pushNewSample(String sampleName)
Input is a sampleName e.g.action name.
|
void |
resetPredictor()
Reset the Predictor
|
boolean |
setModel(byte[] modelData) |
void |
setModelChangeCallback(IBordeauxLearner.ModelChangeCallback callback) |
boolean |
setPredictorParameter(String key,
String value)
Set parameters for 1) using History in probability estimations e.g. consider the last event
and 2) featureAssembly e.g. time and location.
|
public static final String SET_FEATURE
public static final String SET_PAIRED_FEATURES
public static final String FEATURE_SEPARATOR
public static final String USE_HISTORY
public static final String PREVIOUS_SAMPLE
public void resetPredictor()
public void pushNewSample(String sampleName)
public List<StringFloat> getTopCandidates(int topK)
public boolean setPredictorParameter(String key, String value)
public byte[] getModel()
public boolean setModel(byte[] modelData)
public IBinder getBinder()
public void setModelChangeCallback(IBordeauxLearner.ModelChangeCallback callback)