1- #include < chimbuko/modules/performance_analysis/provdb/ProvDBpruneOutlierInterface .hpp>
1+ #include < chimbuko/modules/performance_analysis/provdb/ProvDBpruneInterface .hpp>
22#include < chimbuko/core/provdb/ProvDButils.hpp>
33#include < chimbuko/core/util/error.hpp>
44#include < chimbuko/core/verbose.hpp>
55
66using namespace chimbuko ;
77using namespace chimbuko ::modules::performance_analysis;
88
9- ProvDBpruneOutlierInterface::ProvDBpruneOutlierInterface (const ADOutlier &ad, sonata::Database &db): m_database(db), m_ad(ad), ADDataInterface(){
9+ ProvDBpruneInterface::ProvDBpruneInterface (const ADOutlier &ad, sonata::Database &db): m_database(db), m_ad(ad), ADDataInterface(){
1010 m_collection.reset (new sonata::Collection (db.open (" anomalies" )));
1111 // To avoid loading all items into memory we must loop over the database using its jx9 interface
1212 std::string script = R"(
@@ -37,7 +37,7 @@ while( ($rec = db_fetch('anomalies')) != NULL ){
3737 this ->setNdataSets (m_data.size ());
3838}
3939
40- std::vector<ADDataInterface::Elem> ProvDBpruneOutlierInterface ::getDataSet (size_t dset_index) const {
40+ std::vector<ADDataInterface::Elem> ProvDBpruneInterface ::getDataSet (size_t dset_index) const {
4141 auto it = std::next (m_data.begin (), dset_index);
4242 std::vector<ADDataInterface::Elem> out (it->second .size (), ADDataInterface::Elem (0 ,0 ));
4343 for (size_t i=0 ;i<out.size ();i++){
@@ -47,7 +47,7 @@ std::vector<ADDataInterface::Elem> ProvDBpruneOutlierInterface::getDataSet(size_
4747 return out;
4848}
4949
50- void ProvDBpruneOutlierInterface ::recordDataSetLabelsInternal (const std::vector<Elem> &data, size_t dset_index){
50+ void ProvDBpruneInterface ::recordDataSetLabelsInternal (const std::vector<Elem> &data, size_t dset_index){
5151 std::vector<uint64_t > to_prune;
5252 std::vector<uint64_t > to_update;
5353 std::vector<double > update_scores;
@@ -82,6 +82,6 @@ void ProvDBpruneOutlierInterface::recordDataSetLabelsInternal(const std::vector<
8282 });
8383}
8484
85- size_t ProvDBpruneOutlierInterface ::getDataSetModelIndex (size_t dset_index) const {
85+ size_t ProvDBpruneInterface ::getDataSetModelIndex (size_t dset_index) const {
8686 return std::next (m_data.begin (), dset_index)->first ;
8787}
0 commit comments