ngclearn.utils.feature_dictionaries package

Submodules

ngclearn.utils.feature_dictionaries.polynomialLibrary module

class ngclearn.utils.feature_dictionaries.polynomialLibrary.PolynomialLibrary(poly_order: int = None, include_bias: bool = True)[source]

Bases: object

A class for creating polynomial feature libraries in 1D, 2D, or 3D.

Parameters:
  • poly_order (int) – Maximum order of polynomial terms (Attribute)

  • include_bias (bool) – Whether to include the bias term in the output (Attribute)

fit(X: List[Array]) Tuple[Array, List[str]][source]

Fits this library to a design matrix X

Parameters:

X – the design matrix to fit this library to

Returns:

the data-fit/retro-fit library

include_bias: bool = True
poly_order: int = None

Module contents