This commit is contained in:
randogoth 2024-04-09 07:47:42 +03:00
parent 23a2da6233
commit 92c862bd4c
5 changed files with 136 additions and 213 deletions

View file

@ -1,4 +1,4 @@
from pyagushka import lyagushka
from pyagushka import Lyagushka
from randonautentropy import rndo
import json
import matplotlib.pyplot as plt
@ -41,7 +41,8 @@ with open('dataset.json', 'w') as r:
r.write(json.dumps(dataset, indent=4))
# calculate the anomalies in the data
analysis_results = json.loads(lyagushka(dataset, 4.0, 7))
zhaba = Lyagushka(dataset)
analysis_results = json.loads(zhaba.search(4.0, 7))
analysis_results = filter_by_z_score(analysis_results, 1.0)
with open('result.json', 'w') as r: