Interface Featurizer
-
- All Known Subinterfaces:
Featurizer.DataFeaturizer,PreparedFeaturizer
public interface FeaturizerAn interface that convert String to numeric data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFeaturizer.DataFeaturizerAFeaturizerthat only supports the data featurize operations, but not the full deFeaturize operations used by labels.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdataRequired()Returns the length of the data array required bydeFeaturize(float[]).java.lang.ObjectdeFeaturize(float[] data)Converts the output data for a label back into the Java type.voidfeaturize(DynamicBuffer buf, java.lang.String input)Puts encoded data into the float buffer.
-
-
-
Method Detail
-
featurize
void featurize(DynamicBuffer buf, java.lang.String input)
Puts encoded data into the float buffer.- Parameters:
buf- the float buffer to be filledinput- the string input
-
dataRequired
int dataRequired()
Returns the length of the data array required bydeFeaturize(float[]).- Returns:
- the length of the data array required by
deFeaturize(float[])
-
deFeaturize
java.lang.Object deFeaturize(float[] data)
Converts the output data for a label back into the Java type.- Parameters:
data- the data vector correspondign to the feature- Returns:
- a Java type (depending on the
Featurizer) representing the data.
-
-