LARS

class LARS(*args)

Least Angle Regression.

Refer to Sparse least squares polynomial metamodel.

Notes

LARS inherits from BasisSequenceFactory.

If the size P of the PC basis is of similar size to N, or even possibly significantly larger than N , then the following ordinary least squares problem is ill-posed:

\vect{a} = \argmin_{\vect{b} \in \Rset^P} E_{\mu} \left[ \left( g \circ T^{-1}
        (\vect{U}) - \vect{b}^{\intercal} \vect{\Psi}(\vect{U}) \right)^2 \right]

The sparse least squares approaches may be employed instead. Eventually a sparse PC representation is obtained, that is an approximation which only contains a small number of active basis functions.

This class is not usable as is because it has sense only whithin the FunctionalChaosAlgorithm.

Methods

build(x, y, psi, indices)

Run the algorithm.

getClassName()

Accessor to the object's name.

getId()

Accessor to the object's id.

getMaximumRelativeConvergence()

Accessor to the stopping criterion on the L1-norm of the coefficients.

getName()

Accessor to the object's name.

getShadowedId()

Accessor to the object's shadowed id.

getVerbose()

Accessor to the verbosity.

getVisibility()

Accessor to the object's visibility state.

hasName()

Test if the object is named.

hasVisibleName()

Test if the object has a distinguishable name.

setMaximumRelativeConvergence(coefficientsPaths)

Accessor to the stopping criterion on the L1-norm of the coefficients.

setName(name)

Accessor to the object's name.

setShadowedId(id)

Accessor to the object's shadowed id.

setVerbose(verbose)

Accessor to the verbosity.

setVisibility(visible)

Accessor to the object's visibility state.

__init__(*args)
build(x, y, psi, indices)

Run the algorithm.

Parameters:
x2-d sequence of float

Input sample

y2-d sequence of float

Output sample

psisequence of Function

Basis

indicessequence of int

Current indices of the basis

Returns:
measureBasisSequence

Fitting measure

getClassName()

Accessor to the object’s name.

Returns:
class_namestr

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

getId()

Accessor to the object’s id.

Returns:
idint

Internal unique identifier.

getMaximumRelativeConvergence()

Accessor to the stopping criterion on the L1-norm of the coefficients.

Returns:
efloat

Stopping criterion.

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

getShadowedId()

Accessor to the object’s shadowed id.

Returns:
idint

Internal unique identifier.

getVerbose()

Accessor to the verbosity.

Returns:
vbool.

Verbosity

getVisibility()

Accessor to the object’s visibility state.

Returns:
visiblebool

Visibility flag.

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

hasVisibleName()

Test if the object has a distinguishable name.

Returns:
hasVisibleNamebool

True if the name is not empty and not the default one.

setMaximumRelativeConvergence(coefficientsPaths)

Accessor to the stopping criterion on the L1-norm of the coefficients.

Parameters:
efloat

Stopping criterion.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

setShadowedId(id)

Accessor to the object’s shadowed id.

Parameters:
idint

Internal unique identifier.

setVerbose(verbose)

Accessor to the verbosity.

Parameters:
vbool

Enable or disable the verbosity.

setVisibility(visible)

Accessor to the object’s visibility state.

Parameters:
visiblebool

Visibility flag.

Examples using the class

Trend computation

Trend computation

Advanced polynomial chaos construction

Advanced polynomial chaos construction

Metamodel of a field function

Metamodel of a field function