Closed Clej closed 2 years ago
Merging #389 (546ea84) into develop (a4e7b04) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## develop #389 +/- ##
========================================
Coverage 80.00% 80.00%
========================================
Files 86 86
Lines 6928 6928
========================================
Hits 5543 5543
Misses 1385 1385
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update a4e7b04...546ea84. Read the comment docs.
I propose an example of using
inverse_transform
inFPCA
to detect outliers from the reconstruction error (RE) between the input and the recovered input from the eigenspace. In other words, given a fitted fpca, a threshold and a test samplex
the decision rule is:In the example, we use synthetic data generated from centered gaussian processes. The nonoutliers are generated with a Gaussian kernel and the outliers are generated with an exponential kernel. There are only nontouliers in the training dataset (used to fit the FPCA and set the threshold). There are both outliers and nonoutliers in the test samples.
I tried to make my explanations as concise and intuitive as possible.
The script generates two figures: (i) the dataset and (ii) the distribution of the REs. (i)
(ii)
Finally, we output the truely detected outliers and nonoutliers.