FittingAlgorithm¶
-
class
FittingAlgorithm
(*args)¶ Fitting algorithm.
- Available constructors:
FittingAlgorithm(fittingAlgoImp)
- Parameters
- fittingAlgoImpa FittingAlgorithmImplementation
A fitting algorithm implementation which is the
CorrectedLeaveOneOut
orKFold
.
See also
Notes
FittingAlgorithm is the interface of the FittingAlgorithmImplementation. This class is not usable because it has sense only within the
FunctionalChaosAlgorithm
.Methods
getClassName
(self)Accessor to the object’s name.
getId
(self)Accessor to the object’s id.
getImplementation
(self)Accessor to the underlying implementation.
getName
(self)Accessor to the object’s name.
run
(self, \*args)Run the algorithm.
setName
(self, name)Accessor to the object’s name.
-
__init__
(self, \*args)¶ Initialize self. See help(type(self)) for accurate signature.
-
getClassName
(self)¶ Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
-
getId
(self)¶ Accessor to the object’s id.
- Returns
- idint
Internal unique identifier.
-
getImplementation
(self)¶ Accessor to the underlying implementation.
- Returns
- implImplementation
The implementation class.
-
getName
(self)¶ Accessor to the object’s name.
- Returns
- namestr
The name of the object.
-
run
(self, \*args)¶ Run the algorithm.
- Parameters
- x2-d sequence of float
Input sample
- y2-d sequence of float
Output sample
- weightsequence of float
Weights associated to the outputs
- psisequence of
Function
Basis
- indicessequence of int
Indices of the basis
- Returns
- measurefloat
Fitting measure
-
setName
(self, name)¶ Accessor to the object’s name.
- Parameters
- namestr
The name of the object.