Skip to content

config

lanfactory.config

Modules:

  • network_configs

    This Module defines simple examples for network and training configurations that serve

lanfactory.config.network_configs

This Module defines simple examples for network and training configurations that serve as inputs to the training classes in the package.

The configs are organized as follows: - network_config_mlp / train_config_mlp: For LAN (likelihood approximation networks) - network_config_choice_prob / train_config_choice_prob: For CPN/OPN (choice probability networks)

For backward compatibility, network_config_cpn, network_config_opn, train_config_cpn, and train_config_opn are provided as aliases to the choice_prob configs.

Public configuration dictionaries

Export Purpose
network_config_mlp Default LAN MLP architecture
network_config_choice_prob Shared choice-probability architecture
network_config_cpn Backward-compatible alias of network_config_choice_prob
network_config_opn Backward-compatible alias of network_config_choice_prob
train_config_mlp Default LAN training settings
train_config_choice_prob Shared choice-probability training settings
train_config_cpn Backward-compatible alias of train_config_choice_prob
train_config_opn Backward-compatible alias of train_config_choice_prob

Copy a dictionary before changing it; the objects exported by the module are shared mutable defaults.