Dataset#

class gammapy.datasets.Dataset[source]#

Bases: abc.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

mask

Combined fit and safe mask.

name

tag

Methods Summary

copy([name])

A deep copy.

stat_array()

Statistic array, one value per data point.

stat_sum()

Total statistic given the current model parameters.

to_dict()

Convert to dict for YAML serialization.

Attributes Documentation

mask#

Combined fit and safe mask.

name#
tag#

Methods Documentation

copy(name=None)[source]#

A deep copy.

Parameters
namestr

Name of the copied dataset

Returns
datasetDataset

Copied datasets.

abstract stat_array()[source]#

Statistic array, one value per data point.

stat_sum()[source]#

Total statistic given the current model parameters.

to_dict()[source]#

Convert to dict for YAML serialization.