Bases: dict
Used by SerialCompositeModel and SummedCompositeModel to choose input data using labels.
This is a container assigning labels (names) to all input data arrays to a composite model.
| Parameters: | data : list 
 labels : list of strings 
 | 
|---|
Examples
>>> y, x = np.mgrid[:5, :5]
>>> l = np.arange(10)
>>> labeled_input = LabeledInput([x, y, l], ['x', 'y', 'pixel'])
>>> labeled_input.x
array([[0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4]])
>>> labeled_input['x']
array([[0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4],
       [0, 1, 2, 3, 4]])
Methods Summary
| add([label, value]) | Add input data to a LabeledInput object | 
| copy() | 
Methods Documentation
Add input data to a LabeledInput object
| Parameters: | label : str 
 value : numerical type 
 kw : dictionary 
 | 
|---|