FittingAlgorithm

class FittingAlgorithm(*args)

Fitting algorithm.

Available constructors:
FittingAlgorithm(fittingAlgoImp)
Parameters:
fittingAlgoImp : a FittingAlgorithmImplementation

A fitting algorithm implementation which is the CorrectedLeaveOneOut or KFold.

Notes

FittingAlgorithm is the interface of the FittingAlgorithmImplementation. This class is not usable because it has sense only within the FunctionalChaosAlgorithm.

Methods

getClassName() Accessor to the object’s name.
getId() Accessor to the object’s id.
getImplementation(*args) Accessor to the underlying implementation.
getName() Accessor to the object’s name.
run(*args) Run the algorithm.
setName(name) Accessor to the object’s name.
__init__(*args)

Initialize self. See help(type(self)) for accurate signature.

getClassName()

Accessor to the object’s name.

Returns:
class_name : str

The object class name (object.__class__.__name__).

getId()

Accessor to the object’s id.

Returns:
id : int

Internal unique identifier.

getImplementation(*args)

Accessor to the underlying implementation.

Returns:
impl : Implementation

The implementation class.

getName()

Accessor to the object’s name.

Returns:
name : str

The name of the object.

run(*args)

Run the algorithm.

Parameters:
x : 2-d sequence of float

Input sample

y : 2-d sequence of float

Output sample

weight : sequence of float

Weights associated to the outputs

psi : sequence of Function

Basis

indices : sequence of int

Indices of the basis

Returns:
measure : float

Fitting measure

setName(name)

Accessor to the object’s name.

Parameters:
name : str

The name of the object.