ModelBuilder#

class liesel.liesel.model.ModelBuilder(nodes=None, groups=None)[source]#

Bases: object

A builder class for the Model.

Methods

add_groups(*groups)

Adds node groups to the model builder.

add_nodes(*nodes)

Adds nodes to the model builder.

all_nodes()

Returns a list of all unique nodes that will be part of the model, including the nodes from the groups and the inputs.

build()

Builds the model, including the inputs.

Attributes

groups

A list of node groups to be added to the model.

nodes

A list of nodes to be added to the model.