filter_correlation — Correlation Filter

Group: Signal transforms · Binding: n4m.sklearn.CorrelationFilter · C ABI: n4m_filter_correlation_*

Description

Model-agnostic feature filter by absolute correlation to y.

Parameters

Name

Type

Default

threshold

float

0.0

top_k

`int

None`

Explanations

Bibliographic source

Standard spectroscopic operator — see the nirs4all preprocessing / augmentation handbook and the cited literature within the binding docstring.

Mathematical principle

Model-agnostic feature filter by absolute correlation to y.

Implementation

C ABI n4m_filter_correlation_* in libn4m (create / apply / destroy lifecycle), wrapped by n4m.sklearn.CorrelationFilter. The same numerical kernel backs every language binding.

Usage

from n4m.sklearn import CorrelationFilter
op = CorrelationFilter()
X_transformed = op.fit_transform(X)

See also: methods index · interactive dashboard