generate_parameters
- ProjectParameterRegistry.generate_parameters(model: Model, name: str | None, *, format_name: Literal['yml', 'yaml', 'csv'] = 'csv', allow_overwrite: bool = False, ignore_existing: bool = False)[source]
Generate parameters for a model.
- Parameters:
model (Model) – The model.
name (str | None) – The name of the parameters.
format_name (Literal["yml", "yaml", "csv"]) – The parameter format.
allow_overwrite (bool) – Whether to overwrite existing parameters.
ignore_existing (bool) – Whether to ignore generation of a parameter file if it already exists.
- Raises:
FileExistsError – Raised if parameters is already existing and allow_overwrite=False.