Source code for narla.multi_agent_network.multi_agent_network_settings

import dataclasses
from typing import List

from narla.rewards.reward_types import RewardTypes
from narla.settings.base_settings import BaseSettings
from narla.multi_agent_network.layer_settings import LayerSettings


[docs]@dataclasses.dataclass class MultiAgentNetworkSettings(BaseSettings): layer_settings: LayerSettings = dataclasses.field(default_factory=lambda: LayerSettings()) """Settings for the Layers in the MultiAgentNetwork""" local_connectivity: bool = True """If ``True`` Neurons will only be connected to nearby Neurons""" reward_types: List[RewardTypes] = dataclasses.field(default_factory=lambda: [RewardTypes.TASK_REWARD]) """Reward types to be used by the Neurons for learning""" number_of_layers: int = 3 """Total number of layers to use in the network"""