Command-line Tools (~ctlearn.tools)#

Reference/API#

ctlearn.tools Package#

ctlearn command line tools.

Classes#

TrainCTLearnModel(*args, **kwargs)

Base tool to train a ~ctlearn.core.model.CTLearnModel on R1/DL1a data.

TrainCTLearnKerasModel(*args, **kwargs)

Tool to train a ~ctlearn.core.model.CTLearnModel Keras-based model on R1/DL1a data.

LoggingModelCheckpoint(logger, *args, **kwargs)

Log checkpoint updates through the ctapipe tool logger.

TrainCTLearnPyTorchModel(*args, **kwargs)

Tool to train a ~ctlearn.core.model.CTLearnModel PyTorch-based model on R1/DL1a data.

LST1PredictionTool(*args, **kwargs)

Tool to predict the gammaness, energy and arrival direction from lstchain DL1 data.

MonoPredictCTLearnModel(*args, **kwargs)

Tool to predict the gammaness, energy and arrival direction from monoscopic R1/DL1 data using CTLearn models.

StereoPredictCTLearnModel(*args, **kwargs)

Tool to predict the gammaness, energy and arrival direction from R1/DL1 stereoscopic data using CTLearn models.

ctlearn.tools.train_model Module#

Base tool to train a CTLearnModel``on R1/DL1a data using the ``DLDataReader and DLDataLoader.

Classes#

TrainCTLearnModel(*args, **kwargs)

Base tool to train a ~ctlearn.core.model.CTLearnModel on R1/DL1a data.

ctlearn.tools.keras.train_model Module#

Tool to train a Keras-based CTLearnModel``on R1/DL1a data using the ``DLDataReader and DLDataLoader.

Classes#

LoggingModelCheckpoint(logger, *args, **kwargs)

Log checkpoint updates through the ctapipe tool logger.

TrainCTLearnKerasModel(*args, **kwargs)

Tool to train a ~ctlearn.core.model.CTLearnModel Keras-based model on R1/DL1a data.

ctlearn.tools.pytorch.train_model Module#

Tool to train a PyTorch-based CTLearnModel on R1/DL1a data using the DLDataReader and PyTorchDataLoader.

Classes#

TrainCTLearnPyTorchModel(*args, **kwargs)

Tool to train a ~ctlearn.core.model.CTLearnModel PyTorch-based model on R1/DL1a data.

ctlearn.tools.predict_model Module#

Base (abstract) tool to predict the gammaness, energy and arrival direction using CTLearnModel on R1/DL1 data using the DLDataReader and KerasSequence/PyTorchDataset.

Classes#

PredictCTLearnModel(*args, **kwargs)

Base (abstract) tool to predict the gammaness, energy and arrival direction from R1/DL1 data using CTLearn models.

ctlearn.tools.predict_mono_model Module#

Tool to predict the gammaness, energy and arrival direction in monoscopic mode using CTLearnModel on R1/DL1 data using the DLDataReader and KerasSequence/PyTorchDataset.

Classes#

MonoPredictCTLearnModel(*args, **kwargs)

Tool to predict the gammaness, energy and arrival direction from monoscopic R1/DL1 data using CTLearn models.

ctlearn.tools.predict_stereo_model Module#

Tool to predict the gammaness, energy and arrival direction in stereoscopic mode using CTLearnModel on R1/DL1 data using the DLDataReader and KerasSequence/PyTorchDataset.

Classes#

StereoPredictCTLearnModel(*args, **kwargs)

Tool to predict the gammaness, energy and arrival direction from R1/DL1 stereoscopic data using CTLearn models.

ctlearn.tools.predict_LST1 Module#

Predict the gammaness, energy and arrival direction from lstchain DL1 data.

Classes#

LST1PredictionTool(*args, **kwargs)

Tool to predict the gammaness, energy and arrival direction from lstchain DL1 data.