claf.config package

Submodules

claf.config.args.arg_str2bool(v)[source]
claf.config.args.base_config(parser)[source]
claf.config.args.config(argv=None, mode=None)[source]
claf.config.args.data(parser)[source]
claf.config.args.evaluate(parser)[source]
claf.config.args.general(parser)[source]
claf.config.args.get_input_arguments(parser, input_arguments)[source]
claf.config.args.machine(parser)[source]
claf.config.args.model(parser)[source]
claf.config.args.nsml_for_internal(parser)[source]
claf.config.args.optimize_config(config, is_test=False)[source]
claf.config.args.predict(parser)[source]
claf.config.args.set_batch_size(config)[source]
claf.config.args.set_gpu_env(config)[source]
claf.config.args.token(parser)[source]
claf.config.args.train_config(parser, input_argv=None)[source]

Add argument only for hyperparameter tuning.

claf.config.args.trainer(parser)[source]
class claf.config.namespace.NestedNamespace(**kwargs)[source]

Bases: argparse.Namespace

Nested Namespace (Simple class used by default by parse_args() to create

an object holding attributes and return it.)

delete_unselected(namespace, excepts=[])[source]
load_from_json(dict_data)[source]
overwrite(config)[source]
class claf.config.pattern.Singleton[source]

Bases: type

Design Pattern Base

Singleton Meta Class the singleton pattern is a software design pattern that restricts the instantiation of a class to one object.

class claf.config.registry.Registry[source]

Bases: object

Registry class (Singleton)

add(name, obj)[source]
get(name)[source]
claf.config.utils.convert_config2dict(config)[source]
claf.config.utils.pretty_json_dumps(inputs)[source]
claf.config.utils.remove_none(obj)[source]
claf.config.utils.set_global_seed(seed=21)[source]

Module contents