ertk.tensorflow.models.TFModelConfig
- class ertk.tensorflow.models.TFModelConfig(optimiser: str = 'adam', opt_params: ~typing.Dict[str, ~typing.Any] = <factory>, learning_rate: float = 0.001, n_features: int = -1, n_classes: int = -1, loss: str = 'sparse_categorical_crossentropy')
Bases:
ERTKConfigConfiguration for a TensorFlow model.
- __init__(optimiser: str = 'adam', opt_params: ~typing.Dict[str, ~typing.Any] = <factory>, learning_rate: float = 0.001, n_features: int = -1, n_classes: int = -1, loss: str = 'sparse_categorical_crossentropy') None
Methods
__init__([optimiser, opt_params, ...])Inherited Methods
from_config(config)Create config object from any compatible config.
from_file(path[, override])Create config from YAML file and optionlly override some values.
merge_with_args([args])Merge config with command-line arguments.
to_dictconfig()Convert config to DictConfig.
to_file(path)Write config to YAML file.
to_string()Generate YAML string representation of config.
Attributes
The learning rate to use.
The loss function to use.
The number of classes in the output data.
The number of features in the input data.
The optimiser to use.
The parameters to pass to the optimiser.