Cell(blocks: opytimizer.core.block.Block, edges: Tuple[opytimizer.core.block.Block, opytimizer.core.block.Block])¶
A Cell serves a Direct Acyclic Graph (DAG) which holds blocks as nodes and edges that connects operation paths between the nodes.
__init__(blocks: opytimizer.core.block.Block, edges: Tuple[opytimizer.core.block.Block, opytimizer.core.block.Block]) → None¶
- type – Type of the block.
- pointer – Any type of callable to be applied when block is called.
__call__(*args) → Generator¶
Performs a forward pass over the cell.
Returns: Output for each possible path in DAG. Return type: (Generator)
Index of the input node.
Index of the output node.
Whether cell is valid or not.