EnergyRegressor#
- class ctapipe.reco.EnergyRegressor(**kwargs: Any)[source]#
Bases:
SKLearnRegressionReconstructor
Use a scikit-learn regression model per telescope type to predict primary energy.
Attributes Summary
Property predicted, overridden in subclass.
Name of the target table column for training.
Methods Summary
__call__
(event)Event-wise prediction for the EventSource-Loop.
predict_table
(key, table)Predict on a table of events.
Attributes Documentation
- property = 1#
Property predicted, overridden in subclass.
Methods Documentation
- __call__(event: ArrayEventContainer) None [source]#
Event-wise prediction for the EventSource-Loop.
Fills the event.dl2.<your-feature>[name] container.
- Parameters:
- event: ArrayEventContainer
- predict_table(key, table: Table) dict[ReconstructionProperty, Table] [source]#
Predict on a table of events.
- Parameters:
- keyHashable
Key of the model. Currently always a
TelescopeDescription
as we train models per telescope type.- table
Table
Table of features
- Returns:
- table
Table
Table(s) with predictions, matches the corresponding container definition(s)
- table