14 #include <kll_sketch.hpp>
15 #include <frequent_items_sketch.hpp>
23 typedef std::vector<std::pair<float, int>> ClassificationResults;
34 ModelProfile(std::string model_id, std::string conf_path,
35 int save_interval,
int top_classes);
60 int getNumDistributionBoxes()
const;
62 void registerStatistics();
69 std::string model_id_;
71 std::string statSavepath;
72 std::string dataSavepath;
73 std::map<std::string, std::vector<std::string>> modelConfig;
74 std::vector<float> inference_latency_;
75 std::vector<int> no_detections_per_image_;
76 std::vector<double> objectnessbox_;
78 std::map<int, distributionBox*> model_classes_stat_;
88 std::unordered_map<int, distributionBox*> embeddings_stat_;
Class for computing and managing various model statistics.
Definition: modelprofile.h:26
ModelProfile(std::string model_id, std::string conf_path, int save_interval, int top_classes)
Constructor to initialize ModelProfile object.
Definition: modelprofile.cpp:25
int log_classification_model_stats(float inference_latency, const ClassificationResults &results)
Logs statistics for a classification model.
Definition: modelprofile.cpp:73
int log_embeddings(const std::vector< float > &embeddings)
Logs model embeddings from the model.
Definition: modelprofile.cpp:98
Definition: frequent_items_sketch.hpp:55