smile.feature
Interface FeatureGenerator<T>
-
- Type Parameters:
T- the type of input object.
- All Known Implementing Classes:
- Bag, DateFeature, OneHotEncoder
public interface FeatureGenerator<T>Feature generator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Attribute[]attributes()Returns the variable attributes of generated features.double[]feature(T object)Generates a feature for given object.
-
-
-
Method Detail
-
attributes
Attribute[] attributes()
Returns the variable attributes of generated features. Note that these are NOT the original variable attributes of objects.- Returns:
- the variable attributes of generated features
-
feature
double[] feature(T object)
Generates a feature for given object.- Parameters:
object- an object of interest.- Returns:
- a feature vector.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG