tabensemb.config.UserConfig#
- class tabensemb.config.UserConfig(path: str | None = None)[source]#
Bases:
dictThe configuration holder for
DataModuleandTrainer.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.pyfile_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.
Try to parse the configuration using
argparseand 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
.pyor.jsonfile.