fuzzyclust.timeseries.cluster_based_threshold#
- fuzzyclust.timeseries.cluster_based_threshold(Phi, target, n_clusters=6, m=2.0, random_state=None)[source]#
Point-wise FNN thresholds \(R_k\) from Gath–Geva clusters in the regression space.
The joint data \(\mathbf{z}_k=[\mathbf{x}_k^T\,y_k]^T\) are clustered with the Gath–Geva algorithm (initialized by fuzzy c-means). Every cluster is a local linear model: the eigenvector \(\mathbf{t}_i\) of the smallest eigenvalue of the fuzzy covariance matrix \(\mathbf{F}_i\) is the normal of the hyperplane \(y=\mathbf{a}_i^T\mathbf{x}+b_i\) with \(\mathbf{a}_i=-\mathbf{t}^{x}_i/t^{y}_i\). The gradient of the unknown regression function at \(\mathbf{x}_k\) is approximated by the membership-weighted average of the local slopes, which gives the adaptive threshold of Feil, Abonyi & Szeifert:
\[R_k = \Big\|\sum_{i=1}^{c}\mu_{ik}\,\frac{-1}{t^{y}_i}\,\mathbf{t}^{x}_i\Big\|_2 .\]
Examples using fuzzyclust.timeseries.cluster_based_threshold#
Model-order selection by false nearest neighbors with a cluster-based threshold