lace.Engine.column_assignment

Engine.column_assignment(state_ix: int) List[int]

Return the assignment of columns to views.

Parameters:

state_ix (int) – The state index for which to pull the column assignment

Returns:

asgnasgn[i] is the index of the view to which column i is assigned

Return type:

List[int]

Examples

Get the assignment of columns to views in state 0

>>> from lace.examples import Satellites
>>> engine = Satellites()
>>> engine.column_assignment(0)
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]