DistRegBuilder#

class liesel.liesel.distreg.DistRegBuilder[source]#

Bases: liesel.liesel.model.ModelBuilder

A model builder for distributional regression models.

Methods

add_groups(*groups)

Adds node groups to the model builder.

add_nodes(*nodes)

Adds nodes to the model builder.

add_np_smooth(X, K, a, b, predictor[, name])

Adds a non-parametric smooth to the model builder.

add_p_smooth(X, m, s, predictor[, name])

Adds a parametric smooth to the model builder.

add_predictor(name, inverse_link)

Adds a predictor to the model builder.

add_response(response, distribution)

Adds the response 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.

response

The response node.