tabensemb.config.UserConfig#

class tabensemb.config.UserConfig(path: str | None = None)[source]#

Bases: dict

The configuration holder for DataModule and Trainer.

Methods

__init__(path: str | None = None)[source]#
Parameters:
path

Path to the configuration file. See from_file().

defaults()

The default values in tabensemb.config.default.py

file_type(path)

Check the suffix of the path (json, py, or None).

from_dict(cfg)

Merge the input dictionary into defaults.

from_file(path)

Merge the .py or .json file into defaults.

from_parser()

Try to parse the configuration using argparse and merge it into defaults.

from_uci(name[, datafile_name, ...])

Search, download, and configure a dataset from https://archive.ics.uci.edu/.

merge(d)

Similar to dict.update(), but will ignore values that are None.

parse()

Try to parse the configuration using argparse.

to_file(path)

Save the configuration to a .py or .json file.