public class CachingContinuousValueEncoder extends ContinuousValueEncoder
CONTINUOUS_VALUE_HASH_SEED, WORD_LIKE_VALUE_HASH_SEED| Constructor and Description |
|---|
CachingContinuousValueEncoder(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.
|
addToVector, asString, getSeed, getWeightaddToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, tracepublic CachingContinuousValueEncoder(String name, int dataSize)
public void setProbes(int probes)
CachingValueEncodersetProbes in class CachingValueEncoderprobes - Number of locations to increment.protected int hashForProbe(byte[] originalForm,
int dataSize,
String name,
int probe)
FeatureVectorEncoderhashForProbe in class CachingValueEncoderoriginalForm - 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.