Skip to content

Commit 011c5b2

Browse files
author
sandeepmittal
committed
merge ckelly_develop
1 parent 35deacc commit 011c5b2

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

src/ad/ADOutlier.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ unsigned long ADOutlierCOPOD::compute_outliers(Anomalies &outliers,
597597
int count = param[func_id].counts().at(i);
598598
//verboseStream << "Count: " << count << ", Value: " << param[func_id].bin_edges().at(i) << std::endl;
599599
for(int j=0; j<count; j++){
600-
600+
601601
recon_p_runtimes.at(recon_idx) = param[func_id].bin_edges().at(i);
602602
recon_n_runtimes.at(recon_idx) = -1 * param[func_id].bin_edges().at(i);
603603
//verboseStream << "recon_p_runtimes.at(recon_idx): " << recon_p_runtimes.at(recon_idx) << ", recon_n_runtimes.at(recon_idx): " << recon_n_runtimes.at(recon_idx) << std::endl;
@@ -670,7 +670,7 @@ unsigned long ADOutlierCOPOD::compute_outliers(Anomalies &outliers,
670670

671671
const double runtime_i = this->getStatisticValue(*itt); //runtimes.push_back(this->getStatisticValue(*itt));
672672
double ad_score;
673-
673+
674674
//verboseStream << "mean_pn_ecdf.at(running_idx++): " << mean_pn_ecdf.at(running_idx) << std::endl;
675675
if (mean_pn_ecdf.at(running_idx++) < 0.99)
676676
ad_score = l_threshold + 1;
@@ -693,14 +693,8 @@ unsigned long ADOutlierCOPOD::compute_outliers(Anomalies &outliers,
693693
//Capture maximum of one normal execution per io step
694694
itt->set_label(1);
695695
if(outliers.nFuncEvents(func_id, Anomalies::EventType::Normal) == 0) {
696-
<<<<<<< HEAD
697696
verboseStream << "Detected normal event on func id " << func_id << " (" << itt->get_funcname() << ") on thread " << itt->get_tid() << " runtime " << runtime_i << std::endl;
698697
outliers.insert(itt, Anomalies::EventType::Normal);
699-
700-
=======
701-
verboseStream << "Detected normal event on func id " << func_id << " (" << itt->get_funcname() << ") on thread " << itt->get_tid() << " runtime " << runtime_i << std::endl;
702-
outliers.insert(itt, Anomalies::EventType::Normal);
703-
>>>>>>> ckelly_develop
704698
}
705699

706700
}
@@ -733,9 +727,9 @@ int ADOutlierCOPOD::np_digitize_get_bin_inds(const double& X, const std::vector<
733727
}
734728

735729
std::vector<double> ADOutlierCOPOD::empiricalCDF(const std::vector<double>& runtimes, const bool sorted) {
736-
737-
std::vector<double> tmp_runtimes = runtimes;
738-
auto ecdf = boost::math::empirical_cumulative_distribution_function(std::move(tmp_runtimes));
730+
731+
std::vector<double> tmp_runtimes = runtimes;
732+
auto ecdf = boost::math::empirical_cumulative_distribution_function(std::move(tmp_runtimes));
739733
std::vector<double> result_ecdf = std::vector<double>(runtimes.size(), 0.0);
740734
for(int i=0; i < runtimes.size(); i++) {
741735
result_ecdf.at(i) = ecdf(runtimes.at(i));

0 commit comments

Comments
 (0)