DesignProxy¶
- class DesignProxy(*args)¶
Design matrix cache.
- Available constructors:
DesignProxy(x, basis)
DesignProxy(matrix)
- Parameters
Notes
Helps to cache evaluations of the design matrix. Can be useful for an iterative least squares problem resolution or in interaction with
LeastSquaresMethod
to select the algorithm used for the resolution of linear least-squares problems.Methods
computeDesign
(indices)Build the design matrix.
getBasis
()Accessor to the basis.
Accessor to the object's name.
Input sample accessor.
Row filter accessor.
Sample size accessor.
Accessor to the weights.
Row filter flag accessor.
Weight flag accessor.
setRowFilter
(rowFilter)Row filter accessor.
setWeight
(weight)Accessor to the weights.
- __init__(*args)¶
- computeDesign(indices)¶
Build the design matrix.
- Parameters
- indicessequence of int
Indices of the current basis in the global basis
- Returns
- psiAk
Matrix
The design matrix
- psiAk
- getClassName()¶
Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
- getRowFilter()¶
Row filter accessor.
- Returns
- rowFilter
Indices
Sub-indices in of the sample in the current indices
- rowFilter
- getSampleSize()¶
Sample size accessor.
- Returns
- sampleSizeint
Size of sample accounting for row filter
- hasRowFilter()¶
Row filter flag accessor.
- Returns
- hasRowFilterbool
Whether sub-indices of the basis are set
- hasWeight()¶
Weight flag accessor.
- Returns
- hasWeightbool
Whether weights are set
- setRowFilter(rowFilter)¶
Row filter accessor.
- Parameters
- rowFiltersequence of int
Sub-indices in of the sample in the current indices
- setWeight(weight)¶
Accessor to the weights.
- Parameters
- weightsequence of float
Weights on each basis term