CrossValidator

class ctapipe.reco.sklearn.CrossValidator(**kwargs: Any)[source]

Bases: ctapipe.core.component.Component

Class to train sklearn based reconstructors in a cross validation

Attributes Summary

n_cross_validations

An int trait.

output_path

Output path for the cross validation results.

rng_seed

Seed for the random number generator

Methods Summary

__call__(telescope_type, table)

Call self as a function.

write([overwrite])

Attributes Documentation

n_cross_validations

An int trait.

output_path

Output path for the cross validation results. This is a hdf5 file containing labels and predictions for the events used in the cross validation which can be used to create performance plots.

rng_seed

Seed for the random number generator

Methods Documentation

__call__(telescope_type, table)[source]

Call self as a function.

write(overwrite=False)[source]