opytimizer.core.cell

Cell.

class opytimizer.core.cell.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

Initialization method.

Parameters:
  • 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)
input_idx

Index of the input node.

output_idx

Index of the output node.

valid

Whether cell is valid or not.