The list of every action the model can take.
An ID used by models for exportations.
The size of the vector returned by the featurizer. By default it's set to 1 which is the default for a featurizer that returns no features.
Export the featurizer's internal parameters to be serialized along the model.
Produce an action mask according to featurizer state. (Generally, this method is reimplemented in stateful featurizers)
An array of boolean mapping every actions availability.
Turn the data returned by handleQuery into an embedding vector. This function is used to expose featurizer variables to the model optimizer for training.
Reimplementing this method is not necessary if your featurizer is not meant to be optimizable through gradient descent. In this case, just return the feature vector directly using the handleQuery method.
Let the featurizer know what action the model has taken.
Featurizes and handle a text query.
Initialize the model, can be asynchronous async code.
This method is executed by the model during it's initialization, it will also set the actions attribute.
Load parameters extracted from a JSON-like document.
Resets the state of the featurizer (if the stateful feature is used).
Generated using TypeDoc
A stateful featurizer that turns queries into numerical representations.