yobx.sklearn.decomposition.fast_ica#
- yobx.sklearn.decomposition.fast_ica.sklearn_fast_ica(g: GraphBuilderExtendedProtocol, sts: Dict, outputs: List[str], estimator: FastICA, X: str, name: str = 'fast_ica') str[source]#
Converts a
sklearn.decomposition.FastICAinto ONNX.The transformation replicates
sklearn.decomposition.FastICA.transform():When whitening was applied during fitting (
estimator.whitenis notFalse), the per-feature mean stored inmean_is subtracted first.The data (centred or raw) is then projected onto the independent components via a matrix multiplication with
components_.T.
X ──Sub(mean_)──► centered ──MatMul(components_.T)──► output (only when whiten != False)When
whitenisFalsetheSubnode is omitted and the unmixing matrix is applied directly to X.- Parameters:
g – the graph builder to add nodes to
sts – shapes defined by scikit-learn
estimator – a fitted
FastICAoutputs – desired output names (independent components)
X – input tensor name
name – prefix name for the added nodes
- Returns:
output tensor name