Parameters#

class relife.model.Parameters(**kwargs)[source]#

Tree-structured parameters.

Every ParametricModel are composed of Parameters instance.

Methods

all_items

del_leaf

get_leaf

items_walk

parallel walk through key value pairs

set_leaf

set_names

set_values

update

update names and values of current and parent nodes

update_items

parallel iterations : faster than update_value followed by update_keys

update_parents

Attributes

names

keys of current and leaf nodes as list

node_data

data of current node as dict

values

values of current and leaf nodes as list

items_walk()[source]#

parallel walk through key value pairs

property names#

keys of current and leaf nodes as list

property node_data#

data of current node as dict

update()[source]#

update names and values of current and parent nodes

update_items()[source]#

parallel iterations : faster than update_value followed by update_keys

property values#

values of current and leaf nodes as list