ParamsReader#

mlcompare.params_reader.ParamsInput: TypeAlias = list[dict[str, typing.Any]] | str | pathlib.Path#

User input for pipelines, containing information to load and process datasets or to create ml models.

class mlcompare.params_reader.ParamsReader[source]#

Bases: object

Reads and validates a list of parameters by calling .read().

Attributes:#

params_list (list[dict[str, Any]] | str | Path]): List of dictionaries or a path to a JSON file.

static read(params_list)[source]#

Reads and validates a list of parameters.

Return type:

list[dict[str, Any]]

Parameters:

params_list (list[dict[str, Any]] | str | Path)

Args:#

params_list (list[dict[str, Any]] | str | Path]): List of dictionaries or a path to a JSON file.

Returns:#

:

list[dict[str, Any]]: List of dictionaries containing parameters.

Raises:#

TypeError: If the params_list is not a list of dictionaries or a path to a JSON file. FileNotFoundError: If the specified file does not exist. json.JSONDecodeError: If there is an error decoding the JSON file.