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
(self, indices)Build the design matrix.
getBasis
(self)Accessor to the basis.
getClassName
(self)Accessor to the object’s name.
getInputSample
(self)Input sample accessor.
getRowFilter
(self)Row filter accessor.
getSampleSize
(self)Sample size accessor.
getWeight
(self)Accessor to the weights.
hasRowFilter
(self)Row filter flag accessor.
hasWeight
(self)Weight flag accessor.
setRowFilter
(self, rowFilter)Row filter accessor.
setWeight
(self, weight)Accessor to the weights.
-
__init__
(self, \*args)¶ Initialize self. See help(type(self)) for accurate signature.
-
computeDesign
(self, 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
(self)¶ Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
-
getRowFilter
(self)¶ Row filter accessor.
- Returns
- rowFilter
Indices
Sub-indices in of the sample in the current indices
- rowFilter
-
getSampleSize
(self)¶ Sample size accessor.
- Returns
- sampleSizeint
Size of sample accounting for row filter
-
hasRowFilter
(self)¶ Row filter flag accessor.
- Returns
- hasRowFilterbool
Whether sub-indices of the basis are set
-
hasWeight
(self)¶ Weight flag accessor.
- Returns
- hasWeightbool
Whether weights are set
-
setRowFilter
(self, rowFilter)¶ Row filter accessor.
- Parameters
- rowFiltersequence of int
Sub-indices in of the sample in the current indices
-
setWeight
(self, weight)¶ Accessor to the weights.
- Parameters
- weightsequence of float
Weights on each basis term