Open tibhar940 opened 3 years ago
I'm not sure I understand your need correctly, but seems you can use a CustomizedTransformer at final to "post-process" the binary output from the two detectors?
I'm not sure I understand your need correctly, but seems you can use a CustomizedTransformer at final to "post-process" the binary output from the two detectors?
@tailaiw Could you please provide an example? My results from detectors: waprice_pos = [0, 1, 1, 0, 0] waprice_neg = [1, 0, 0, 1, 0]
final result should be generated with this logic - "if waprice_pos == 1 then result = 1, if waprice_pos == 0 and waprice_neg == 0 then result = 0, if waprice_neg == 1 then result = -1" result = [-1, 1, 1, -1, 0]
Is there any easy way for returning non-binary result for anomaly detector? For example how to make pipeline for QuantileAD(high=0.99, low=0.01) there results will be presented as {-1,0,1}? I tried this way:
But I don't know how I can finalize
waprice_neg
andwaprice_pos
. Thank you.