poprox_recommender.lkpipeline.nodes#

Classes

ComponentNode(name, component)

InputNode(name, *[, types])

An input node.

LiteralNode(name, value, *[, types])

Node(name, *[, types])

Representation of a single node in a Pipeline.

class poprox_recommender.lkpipeline.nodes.Node(name, *, types=None)#

Bases: Generic[ND]

Representation of a single node in a Pipeline.

Parameters:
name: str#

The name of this node.

types: set[type] | None#

The set of valid data types of this node, or None for no typechecking.

class poprox_recommender.lkpipeline.nodes.InputNode(name, *, types=None)#

Bases: Node[ND], Generic[ND]

An input node.

Parameters:
class poprox_recommender.lkpipeline.nodes.LiteralNode(name, value, *, types=None)#

Bases: Node[ND], Generic[ND]

Parameters:
value: ND#

The value associated with this node

class poprox_recommender.lkpipeline.nodes.ComponentNode(name, component)#

Bases: Node[ND], Generic[ND]

Parameters:
component: Callable[[...], ND]#

The component associated with this node

connections: dict[str, str]#

The component’s input connections.

inputs: dict[str, type | None]#

The component’s inputs.