train_event_classifier#

magicctapipe.scripts.train_event_classifier(input_dir_gamma, input_dir_proton, output_dir, config, use_unsigned_features=False)[source]#

Trains event classifiers with gamma and proton MC DL1-stereo events.

Parameters:
input_dir_gammastr

Path to a directory where input gamma MC data files are stored

input_dir_protonstr

Path to a directory where input proton MC data files are stored

output_dirstr

Path to a directory where to save trained RFs

configdict

Configuration for the LST-1 + MAGIC analysis

use_unsigned_featuresbool

If True, it uses unsigned features for training RFs