skarf.covariance.create_spi_from_config#
- skarf.covariance.create_spi_from_config(module_name: str, fcn: str, params: dict[str, Any] | None = None) SPI#
Create an SPI by its module name and function (with params).
- Parameters:
- module_namestr
Name of the module where the SPI is defined, relative to
pyspi. E.g.'.statistics.basic'.- fcnstr
PySPI function name (i.e. class name), e.g.
'Covariance'.- paramsdict of str -> value
Parameters passed through to the PySPI SPI
fcn, e.g.{'estimator': 'EmpiricalCovariance', 'squared': True}.
- Returns:
- spifun
SPIobject. Initialized
SPIobject.
- spifun
See also
load_spi_config_mapLoad the SPI config map of SPI identifiers to config dicts.