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, weightaddToVector, asString, getWeightaddToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, tracepublic CachingStaticWordValueEncoder(String name, int dataSize)
public void setProbes(int probes)
FeatureVectorEncodersetProbes in class FeatureVectorEncoderprobes - Number of locations to increment.protected int hashForProbe(byte[] originalForm,
int dataSize,
String name,
int probe)
FeatureVectorEncoderhashForProbe in class StaticWordValueEncoderoriginalForm - The original byte array valuedataSize - The length of the vector being encodedname - The name of the variable being encodedprobe - The probe numberCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.