Config
Configuration specifications to automatically generate a config file and allow correct use.
Includes the config class, its default parameters and directly related factories.
- class ecgan.config.configs.Config(base_config='config.yml', output_file='config.yml')[source]
Bases:
abc.ABC
Base class for configurations which can be used to generate persistent config files or read from one.
- class ecgan.config.configs.PreprocessingConfigFactory[source]
Bases:
object
Factory for preprocessing configs.
- static choose_class(dataset)[source]
Choose the correct class based on the provided dataset name.
- Return type
Type
[PreprocessingConfig
]
- class ecgan.config.configs.TrainConfig(base_config='config.yml', output_file='config.yml')[source]
Bases:
ecgan.config.configs.Config
Create a config object.
Creates config no base_config has yet been created.
- class ecgan.config.configs.InverseConfig(base_config='config.yml', output_file='config.yml')[source]
Bases:
ecgan.config.configs.Config
Configuration for an inverse mapping.
- Attribs
alias of
ecgan.config.nested_dataclass.nested_dataclass.<locals>.wrapper.<locals>.NestedDataclass
- class ecgan.config.configs.AnomalyDetectionConfig(base_config='ad_config.yml', output_file='ad_config.yml')[source]
Bases:
ecgan.config.configs.Config
Configuration used to detect anomalies.
- class ecgan.config.configs.DetectionConfigFactory[source]
Bases:
object
Create an instance of ModuleConfig depending on the provided module.
- static choose_class(detector)[source]
Choose the correct class based on the provided module name.
- Return type
Type
[DetectionConfig
]
- class ecgan.config.configs.ModuleConfigFactory[source]
Bases:
object
Create an instance of ModuleConfig depending on the provided module.
Helper function to access configurations from previous runs.
- ecgan.config.helpers.get_run_config(config)[source]
Return a
TrainerConfig
from aInverseConfig.Attribs
orAnomalyDetectionConfig
.- Return type