Class nELM#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

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

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

Public Functions

__init__(self, JaxOrNumpyArray x0, JaxOrNumpyArray xf, JaxOrNumpyArray 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, JaxOrNumpyArray val)#
Weights of the nELM.

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

Parameters
----------
val : NDArray
    New biases.
H(self, JaxOrNumpyArray x, JaxOrNumpyArray 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.

Protected Functions

_nHint(self, JaxOrNumpyArray z, JaxOrNumpyArray d)#
Internal method used to calcualte the basis function value.

Parameters
----------
z : NDArray
    Values to calculate the basis functions for.
d : NDArray
    Derivative order.

Returns
-------
H : NDArray
    Basis function values.
_Hint(self, JaxOrNumpyArray z, uint d)#
Dummy function, this should never be called!

Protected Attributes

_m#
_nC#
_dim#
_numC#
_z0#
_zf#
_x0#
_c#
_numBasisFunc#
_numBasisFuncFull#
_w#
_b#