sierra.core.variables.population_size

Reusable classes related to the homogeneous populations of agents.

  • BasePopulationSize: Base class for changing the # agents/robots to reduce code duplication.

  • Parser: A base parser for use in changing the # robots/agents.

class sierra.core.variables.population_size.BasePopulationSize(*args, **kwargs)[source]

Base class for changing the # agents/robots to reduce code duplication.

Inheritance

Inheritance diagram of BasePopulationSize
__doc__ = '\n    Base class for changing the # agents/robots to reduce code duplication.\n    '
__init__(*args, **kwargs) None[source]
__module__ = 'sierra.core.variables.population_size'
graph_xlabel(cmdopts: Dict[str, Any]) str[source]
graph_xticklabels(cmdopts: Dict[str, Any], exp_names: Optional[List[str]] = None) List[str][source]
graph_xticks(cmdopts: Dict[str, Any], exp_names: Optional[List[str]] = None) List[float][source]
class sierra.core.variables.population_size.Parser[source]

A base parser for use in changing the # robots/agents.

Inheritance

Inheritance diagram of Parser
__call__(arg: str) Dict[str, Any][source]

Call self as a function.

__dict__ = mappingproxy({'__module__': 'sierra.core.variables.population_size', '__doc__': 'A base parser for use in changing the # robots/agents.\n\n    ', '__call__': <function Parser.__call__>, 'to_sizes': <function Parser.to_sizes>, '__dict__': <attribute '__dict__' of 'Parser' objects>, '__weakref__': <attribute '__weakref__' of 'Parser' objects>, '__annotations__': {}})
__doc__ = 'A base parser for use in changing the # robots/agents.\n\n    '
__module__ = 'sierra.core.variables.population_size'
__weakref__

list of weak references to the object (if defined)

to_sizes(attr: Dict[str, Any]) List[int][source]

Generate the system sizes for each experiment in a batch.