From 105156a8f0f5b585731e5d33099c118865c3dbd7 Mon Sep 17 00:00:00 2001 From: yarintz33 Date: Thu, 30 Dec 2021 04:31:21 -0800 Subject: [PATCH] kibalt? 30/12 13:50 --- MainTrain.cpp | 2 ++ commands.h | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/MainTrain.cpp b/MainTrain.cpp index ea93815..3bb7fa8 100644 --- a/MainTrain.cpp +++ b/MainTrain.cpp @@ -58,6 +58,8 @@ void check(string outputFile,string expectedOutputFile){ while(!st.eof() && !ex.eof()){ getline(st,lst); getline(ex,lex); + //cout<fileSize = tsTest.getSize(); - HybridAnomalyDetector hd = HybridAnomalyDetector(); + HybridAnomalyDetector hd; hd.setThreshold(d->THRESHOLD); hd.learnNormal(tsTrain); d->AnomalyReportList = hd.detect(tsTest);; @@ -168,11 +168,6 @@ class UploadAnom:public Command{ } virtual void execute(data* data){ - - // for(size_t i=0;ifixdRports.size();i++){ - // sharedState->fixdRports[i].tp=false; - // } - dio->write("Please upload your local anomalies file.\n"); string s=""; float TP=0,sum=0,P=0; @@ -206,7 +201,6 @@ class Exit:public Command{ public: Exit(DefaultIO* dio):Command(dio){} virtual void execute(data* data){ - //cout<