public class CachingStaticWordValueEncoder extends StaticWordValueEncoder
CONTINUOUS_VALUE_HASH_SEED, WORD_LIKE_VALUE_HASH_SEED
Constructor and Description |
---|
CachingStaticWordValueEncoder(String name,
int dataSize) |
Modifier and Type | Method and Description |
---|---|
protected int |
hashForProbe(byte[] originalForm,
int dataSize,
String name,
int probe)
Provides the unique hash for a particular probe.
|
void |
setProbes(int probes)
Sets the number of locations in the feature vector that a value should be in.
|
setDictionary, setMissingValueWeight, weight
addToVector, asString, getWeight
addToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, trace
public CachingStaticWordValueEncoder(String name, int dataSize)
public void setProbes(int probes)
FeatureVectorEncoder
setProbes
in class FeatureVectorEncoder
probes
- Number of locations to increment.protected int hashForProbe(byte[] originalForm, int dataSize, String name, int probe)
FeatureVectorEncoder
hashForProbe
in class StaticWordValueEncoder
originalForm
- The original byte array valuedataSize
- The length of the vector being encodedname
- The name of the variable being encodedprobe
- The probe numberCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.