Dataset#
- class gammapy.datasets.Dataset#
Bases:
ABC
Dataset abstract base class. For now, see existing examples of type of datasets:
For more information see Datasets (DL4).
TODO: add tutorial how to create your own dataset types.
Attributes Summary
Methods Summary
copy
([name])A deep copy.
Statistic array, one value per data point.
stat_sum
()Total statistic given the current model parameters and priors.
to_dict
()Convert to dict for YAML serialization.
Attributes Documentation
- mask#
Combined fit and safe mask.
- name#
- tag#
Methods Documentation
- copy(name=None)#
A deep copy.
- Parameters:
- namestr, optional
Name of the copied dataset. Default is None.
- Returns:
- dataset
Dataset
Copied datasets.
- dataset
- abstract stat_array()#
Statistic array, one value per data point.
- stat_sum()#
Total statistic given the current model parameters and priors.
- to_dict()#
Convert to dict for YAML serialization.