Tracking artifacts

Supported artifact types which are used as templates for tracking experiments.

class ecgan.utils.artifacts.Artifact(name)[source]

Bases: object

Abstract base class for artifacts supported by the tracker.

class ecgan.utils.artifacts.ImageArtifact(name, image)[source]

Bases: ecgan.utils.artifacts.Artifact

Artifact wrapper for an image encoded as np.ndarray or a mpl Figure.

class ecgan.utils.artifacts.ValueArtifact(name, value)[source]

Bases: ecgan.utils.artifacts.Artifact

Create an artifact which stores a single value (e.g. metric).

class ecgan.utils.artifacts.FileArtifact(name, data, file_name)[source]

Bases: ecgan.utils.artifacts.Artifact

Create an artifact containing a dictionary which shall be saved into a yaml or pickle file.