--- title: Structure keywords: fastai sidebar: home_sidebar summary: "Classes to create hierachy configurations." description: "Classes to create hierachy configurations." nb_path: "nbs/06_structure.ipynb" ---
{% raw %}
{% endraw %} {% raw %}
%load_ext autoreload
%autoreload 2
The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload
{% endraw %} {% raw %}
{% endraw %} {% raw %}

LevelKey[source]

Enum = [ZERO, N, TOP, ZEROTOP]

An enumeration.

{% endraw %} {% raw %}
{% endraw %} {% raw %}

class ArchitectureStructure[source]

ArchitectureStructure(references=None, config=None, attr_mut_pb=None, lower_float=None, upper_float=None, levels_limit=None, columns_limit=None, sigma=None, mu=None, alpha=None, modes=None, namespace=None, **cargs)

ArchitectureStructure

{% endraw %} {% raw %}
{% endraw %} {% raw %}
arch = ArchitectureStructure()
{% endraw %} {% raw %}
config = arch.get_config()
print(arch.get_config())
target =  {'parameters': { 'modes' : {LevelKey.ZERO:3, LevelKey.N:3,LevelKey.TOP:4,LevelKey.ZEROTOP :4} }}
assert config == target
{'parameters': {'modes': {<LevelKey.ZERO: 'level0'>: 3, <LevelKey.N: 'leveln'>: 3, <LevelKey.TOP: 'leveltop'>: 4, <LevelKey.ZEROTOP: 'level0top'>: 4}}}
{% endraw %}