CorrectedLeaveOneOut¶
- class CorrectedLeaveOneOut(*args)¶
Corrected leave one out.
Methods
Accessor to the object's name.
getName
()Accessor to the object's name.
hasName
()Test if the object is named.
run
(x, y, weight, psi, indices)Run the algorithm.
setName
(name)Accessor to the object's name.
See also
Notes
CorrectedLeaveOneOut inherits from
FittingAlgorithm
.This class is not usable on its own is because it has sense only within the
FunctionalChaosAlgorithm
.- __init__(*args)¶
- getClassName()¶
Accessor to the object’s name.
- Returns:
- class_namestr
The object class name (object.__class__.__name__).
- getName()¶
Accessor to the object’s name.
- Returns:
- namestr
The name of the object.
- hasName()¶
Test if the object is named.
- Returns:
- hasNamebool
True if the name is not empty.
- run(x, y, weight, psi, indices)¶
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(name)¶
Accessor to the object’s name.
- Parameters:
- namestr
The name of the object.
Examples using the class¶
Advanced polynomial chaos construction