View Source Bumblebee.Featurizer behaviour (Bumblebee v0.2.0)

An interface for configuring and applying featurizers.

A featurizer is used to convert raw data into model input.

Every module implementing this behaviour is expected to also define a configuration struct.

Link to this section Summary

Callbacks

Performs feature extraction on the given input.

Link to this section Types

Link to this section Callbacks

Link to this callback

apply(t, input, defn_options)

View Source
@callback apply(t(), input :: any(), defn_options :: keyword()) :: any()

Performs feature extraction on the given input.