Closed erblast closed 5 months ago
Introduction of lof specific noise could be done by applying principal components to timeseries. Alter the first (most important) 1-5 components (I suggest starting out changing only 2 as those can be easily visualized in an 2d plot) and transform back. The noise could be something like adding y% of there average principal component value. Transformation is possible both ways as it is linear.
solved it now by sampling new data based on a random non-normal distribution for a percentage of patients determined by anomaly_degree
Follow design of: https://impala-consortium.github.io/ctasval/reference/anomaly.html