NDArrayCollector is a Collector which transforms frame-based replay
data into a 2-dimensional array of type ndarray::Array2, where each
element is of a specified floating point type.
This trait acts as an abstraction over a feature adder, and is primarily
used to allow for heterogeneous collections of feature adders in the
NDArrayCollector. While it provides methods for adding features and
retrieving column headers, it is generally recommended to implement the
LengthCheckedFeatureAdder trait instead, which provides compile-time
guarantees about the number of features returned.
This trait is stricter version of the FeatureAdder trait, enforcing at
compile time that the number of features added is equal to the number of
column headers provided. Implementations of this trait can be automatically
adapted to the FeatureAdder trait using the impl_feature_adder!
macro.
This trait is a more strict version of the PlayerFeatureAdder trait,
enforcing at compile time that the number of player-specific features added
is equal to the number of column headers provided. Implementations of this
trait can be automatically adapted to the PlayerFeatureAdder trait using
the impl_player_feature_adder! macro.
This trait acts as an abstraction over a player-specific feature adder, and
is primarily used to allow for heterogeneous collections of player feature
adders in the NDArrayCollector. While it provides methods for adding
player-specific features and retrieving column headers, it is generally
recommended to implement the LengthCheckedPlayerFeatureAdder trait
instead, which provides compile-time guarantees about the number of features
returned.