bayespy.utils.misc.composite_function

bayespy.utils.misc.composite_function(function_list)[source]

Construct a function composition from a list of functions.

Given a list of functions [f,g,h], constructs a function h \circ g
\circ f. That is, returns a function z, for which z(x) =
h(g(f(x))).