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, setProbes
addToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, trace
public ContinuousValueEncoder(String name)
public void addToVector(byte[] originalForm, double weight, Vector data)
addToVector
in class FeatureVectorEncoder
originalForm
- 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 FeatureVectorEncoder
public String asString(String originalForm)
asString
in class FeatureVectorEncoder
originalForm
- The original form of the value as a string.protected int getSeed()
getSeed
in class CachingValueEncoder
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.