public class ContinuousValueEncoder extends CachingValueEncoder
CONTINUOUS_VALUE_HASH_SEED, WORD_LIKE_VALUE_HASH_SEED| Constructor and Description |
|---|
ContinuousValueEncoder(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToVector(byte[] originalForm,
double weight,
Vector data)
Adds a value to a vector.
|
String |
asString(String originalForm)
Converts a value into a form that would help a human understand the internals of how the value
is being interpreted.
|
protected int |
getSeed() |
protected double |
getWeight(byte[] originalForm,
double w) |
hashForProbe, setProbesaddToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, tracepublic ContinuousValueEncoder(String name)
public void addToVector(byte[] originalForm,
double weight,
Vector data)
addToVector in class FeatureVectorEncoderoriginalForm - The original form of the value as a string.data - The vector to which the value should be added.protected double getWeight(byte[] originalForm,
double w)
getWeight in class FeatureVectorEncoderpublic String asString(String originalForm)
asString in class FeatureVectorEncoderoriginalForm - The original form of the value as a string.protected int getSeed()
getSeed in class CachingValueEncoderCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.