liesel.liesel.nodes#

Model nodes.

Functions

transform_parameter(node, bijector)

Transforms a parameter and its distribution with a TFP bijector.

Classes

Addition(*inputs[, distribution, name])

A weak node with an AdditionCalculator.

AdditionCalculator(*inputs)

Calculates the element-wise sum of its inputs.

Bijector(bijector, input[, inverse, ...])

A weak node with a BijectorCalculator.

BijectorCalculator(bijector, input[, inverse])

Evaluates the forward or the inverse method of a TFP bijector at its input.

ColumnStack(*inputs[, distribution, name])

A weak node with a ColumnStackCalculator.

ColumnStackCalculator(*inputs)

Stacks its inputs column-wise.

DesignMatrix()

A strong node representing a design matrix.

Hyperparameter()

A strong node representing a hyperparameter.

InverseLink(bijector, input[, inverse, ...])

A bijector node representing an inverse link function.

Node()

A node which can be used to build probabilistic graphical models.

NodeCalculator(*args, **kwargs)

An abstract value calculator of a node.

NodeComponent(*args, **kwargs)

An abstract node component with inputs and a NumPy module.

NodeDistribution(distribution[, bijector])

A probability distribution of a node.

NodeGroup([name])

NodeInputs(*args, **kwargs)

The inputs of a node component as a tuple with optional names.

PIT(input[, distribution, name])

A weak node with a PITCalculator.

PITCalculator(input, **kwargs)

Calculates the probability integral transform of its input.

Parameter(value[, distribution, name])

A strong node representing a model parameter.

Predictor(*inputs[, distribution, name])

An addition node representing a regression predictor.

RegressionCoef(value[, distribution, name])

A parameter node representing a vector of regression coefficients.

Response()

A strong node representing a response vector or matrix.

Smooth(x, beta[, distribution, name])

A weak node with a SmoothCalculator.

SmoothCalculator(x, beta)

Calculates a smooth x @ beta.

SmoothingParam(value[, distribution, name])

A parameter node representing a smoothing parameter.