Package com.spotify.zoltar
Interface FeatureExtractFns.ExtractFn<InputT,VectorT>
-
- Type Parameters:
InputT
- type of the input to feature extraction.VectorT
- type of feature extraction result.
- All Known Subinterfaces:
FeatureExtractFns.BatchExtractFn<InputT,VectorT>
- Enclosing interface:
- FeatureExtractFns
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface FeatureExtractFns.ExtractFn<InputT,VectorT>
Generic feature extraction function, takes multiple raw input and should return extracted features of user defined type.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<VectorT>
apply(InputT... inputs)
Functional interface.static <InputT> FeatureExtractFns.ExtractFn<InputT,InputT>
identity()
static <InputT,VectorT>
FeatureExtractFns.ExtractFn<InputT,VectorT>lift(Function<InputT,VectorT> fn)
default <C extends FeatureExtractFns.ExtractFn<InputT,VectorT>>
Cwith(Function<FeatureExtractFns.ExtractFn<InputT,VectorT>,C> fn)
-
-
-
Method Detail
-
lift
static <InputT,VectorT> FeatureExtractFns.ExtractFn<InputT,VectorT> lift(Function<InputT,VectorT> fn)
-
identity
static <InputT> FeatureExtractFns.ExtractFn<InputT,InputT> identity()
-
apply
List<VectorT> apply(InputT... inputs) throws Exception
Functional interface. Perform feature extraction.- Throws:
Exception
-
with
default <C extends FeatureExtractFns.ExtractFn<InputT,VectorT>> C with(Function<FeatureExtractFns.ExtractFn<InputT,VectorT>,C> fn)
-
-