ApproximationAlgorithmImplementationFactory¶
- class ApproximationAlgorithmImplementationFactory(*args)¶
Approximation algorithm factory base class.
Methods
build
(*args)Build the approximation.
Accessor to the object's name.
getName
()Accessor to the object's name.
hasName
()Test if the object is named.
Get the model selection flag.
setName
(name)Accessor to the object's name.
Notes
It represents a generic class (virtual) for different factories like
PenalizedLeastSquaresAlgorithmFactory
orLeastSquaresMetaModelSelectionFactory
This class is not usable because it operates only within the class
FunctionalChaosAlgorithm
.- __init__(*args)¶
- build(*args)¶
Build the approximation.
- Parameters:
- x2-d sequence of float
The input random observations where is the input of the physical model, is the input dimension and is the sample size.
- y2-d sequence of float
The output random observations where is the output of the physical model, is the output dimension and is the sample size.
- weightsequence of float
Weights associated to the input sample points such that the corresponding weighted experiment is a good approximation of , where is the distribution of the standard random vector associated with the physical input random vector . If unspecified, all weights are equal to , where is the size of the sample.
- psisequence of
Function
The functional basis.
- indicessequence of int
Indices in the basis.
- Returns:
- algorithm:
ApproximationAlgorithm
The estimation algorithm.
- algorithm:
- 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.
- involvesModelSelection()¶
Get the model selection flag.
A model selection method can be used to select the coefficients of the decomposition which enable to best predict the output. Model selection leads to a sparse functional chaos expansion.
- Returns:
- involvesModelSelectionbool
True if the method involves a model selection method.
- setName(name)¶
Accessor to the object’s name.
- Parameters:
- namestr
The name of the object.
Examples using the class¶
Compute grouped indices for the Ishigami function
Create a full or sparse polynomial chaos expansion
Advanced polynomial chaos construction
Create a polynomial chaos for the Ishigami function: a quick start guide to polynomial chaos
Polynomial chaos is sensitive to the degree
Compute Sobol’ indices confidence intervals
Conditional expectation of a polynomial chaos expansion
Polynomial chaos expansion cross-validation
Compute leave-one-out error of a polynomial chaos expansion