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, getWeight
addToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, trace
public CachingContinuousValueEncoder(String name, int dataSize)
public void setProbes(int probes)
CachingValueEncoder
setProbes
in class CachingValueEncoder
probes
- Number of locations to increment.protected int hashForProbe(byte[] originalForm, int dataSize, String name, int probe)
FeatureVectorEncoder
hashForProbe
in class CachingValueEncoder
originalForm
- 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.