FeatureGenerator#
- class ctapipe.core.FeatureGenerator(**kwargs: Any)[source]#
Bases:
Component
Generate features for astropy.table.Table.
Raises Exceptions in two cases: 1. If a feature already exists in the table 2. If a feature cannot be built with the given expression
Attributes Summary
List of 2-Tuples of Strings: ('new_feature_name', 'expression to generate feature').
Methods Summary
__call__
(table, **kwargs)Apply feature generation to the input table.
Attributes Documentation
- features#
List of 2-Tuples of Strings: (‘new_feature_name’, ‘expression to generate feature’). You can use
numpy
asnp
andastropy.units
asu
. Several math functions are usable without thenp
-prefix. Usefeature.quantity.to_value(unit)
to create features without units.
Methods Documentation