Package com.spotify.zoltar
Interface PredictorBuilder<ModelT extends Model<?>,InputT,VectorT,ValueT>
-
- Type Parameters:
ModelT
- underlying type of theModel
.InputT
- type of the input to theFeatureExtractor
.VectorT
- type of the output fromFeatureExtractor
.ValueT
- type of the prediction result.
public interface PredictorBuilder<ModelT extends Model<?>,InputT,VectorT,ValueT>
PredictorBuilder holds the necessary info to build aPredictor
.
-
-
Method Summary
-
-
-
Method Detail
-
modelLoader
ModelLoader<ModelT> modelLoader()
-
featureExtractor
FeatureExtractor<ModelT,InputT,VectorT> featureExtractor()
-
predictFn
PredictFns.AsyncPredictFn<ModelT,InputT,VectorT,ValueT> predictFn()
-
with
PredictorBuilder<ModelT,InputT,VectorT,ValueT> with(ModelLoader<ModelT> modelLoader, FeatureExtractor<ModelT,InputT,VectorT> featureExtractor, PredictFns.AsyncPredictFn<ModelT,InputT,VectorT,ValueT> predictFn)
-
with
default <C extends PredictorBuilder<ModelT,InputT,VectorT,ValueT>> C with(ModelLoader<ModelT> modelLoader)
-
with
default <C extends PredictorBuilder<ModelT,InputT,VectorT,ValueT>> C with(FeatureExtractor<ModelT,InputT,VectorT> featureExtractor)
-
with
default <C extends PredictorBuilder<ModelT,InputT,VectorT,ValueT>> C with(PredictFns.AsyncPredictFn<ModelT,InputT,VectorT,ValueT> predictFn)
-
-