Skip to content

Commit

Permalink
kibalt? 30/12 13:50
Browse files Browse the repository at this point in the history
  • Loading branch information
yarintz33 committed Dec 30, 2021
1 parent 60667de commit 105156a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions MainTrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ void check(string outputFile,string expectedOutputFile){
while(!st.eof() && !ex.eof()){
getline(st,lst);
getline(ex,lex);
//cout<<lst<<endl;

if(i<13 && lst.compare(lex)!=0){ // 12
cout<<"line "<<i<<" expected: "<<lex<<" you got "<<lst<<endl;
cout<<"wrong output (-1)"<<endl;
Expand Down
8 changes: 1 addition & 7 deletions commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class HybridAlgo:public Command{
TimeSeries tsTrain = TimeSeries("anomalyTrain.csv");
TimeSeries tsTest = TimeSeries("anomalyTest.csv");
d->fileSize = tsTest.getSize();
HybridAnomalyDetector hd = HybridAnomalyDetector();
HybridAnomalyDetector hd;
hd.setThreshold(d->THRESHOLD);
hd.learnNormal(tsTrain);
d->AnomalyReportList = hd.detect(tsTest);;
Expand Down Expand Up @@ -168,11 +168,6 @@ class UploadAnom:public Command{
}

virtual void execute(data* data){

// for(size_t i=0;i<sharedState->fixdRports.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;
Expand Down Expand Up @@ -206,7 +201,6 @@ class Exit:public Command{
public:
Exit(DefaultIO* dio):Command(dio){}
virtual void execute(data* data){
//cout<<description<<endl;
}
};

Expand Down

0 comments on commit 105156a

Please sign in to comment.