Class nELM#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

tfc.utils.BF.BF_Py.nELM : public tfc.utils.BF.BF_Py.nBasisFunc
n-dimensional extreme learning machine abstract basis class.

Subclassed by tfc.utils.BF.BF_Py.nELMReLU, tfc.utils.BF.BF_Py.nELMSigmoid, tfc.utils.BF.BF_Py.nELMSin, tfc.utils.BF.BF_Py.nELMSwish, tfc.utils.BF.BF_Py.nELMTanh

Public Functions

__init__(self, npt.NDArray x0, npt.NDArray xf, npt.NDArray nC, uint m, Number z0=0.0, Number zf=1.0)#
Initialize the basis class.

Parameters
----------
x0 : NDArray
    Start of the problem domain.
xf : NDArray
    End of the problem domain.
nC : NDArray
    Basis functions to be removed
m : uint
    Number of basis functions.
z0 : Number
    Start of the basis function domain.
zf : Number
    End of the basis function domain.
w(self)#
Weights of the nELM

Returns
-------
NDArray
    Weights of the ELM.
b(self)#
Biases of the nELM

Returns
-------
NDArray
    Biases of the ELM.
w(self, npt.NDArray val)#
Weights of the nELM.

Parameters
----------
val : NDArray
    New weights.
b(self, npt.NDArray val)#
Biases of the nELM.

Parameters
----------
val : NDArray
    New biases.
H(self, npt.NDArray x, npt.NDArray d, bool full=False)#
Returns the basis function matrix for the x with a derivative of order d.

Parameters
----------
x : NDArray
    Input array. Values to calculate the basis function for.
    Should be size dim x N.
d : NDArray
    Order of the derivative
full : bool
    Whether to return the full basis function set, or remove
    the columns associated with self._nC.

Returns
-------
H : NDArray
    The basis function values.