88
99#pragma once
1010
11- #include " wif/classifiers/classifier .hpp"
11+ #include " wif/classifiers/genericMlClassifier .hpp"
1212#include " wif/ml/mlpackWrapper.hpp"
1313
1414#include < memory>
@@ -21,13 +21,13 @@ namespace WIF {
2121 * @brief Classifier performing ML classification which is interconnected with Mlpack library
2222 *
2323 */
24- class MlpackClassifier : public Classifier {
24+ class MlpackClassifier : public GenericMlClassifier {
2525public:
2626 /* *
2727 * @brief Construct a new Mlpack Classifier object
2828 *
29- * @param path contains the path to the file with the trained model.
30- * @param logicalName contains the logical name of the trained model.
29+ * @param path contains the path to the file with the trained model
30+ * @param logicalName contains the logical name of the trained model
3131 */
3232 MlpackClassifier (const std::string& path, const std::string& logicalName = " trained_data" );
3333
@@ -44,7 +44,7 @@ class MlpackClassifier : public Classifier {
4444 *
4545 * @param flowFeatures flow features to classify
4646 * @return ClfResult result of the classification, which contains double represention class or
47- * vector<double> with probabilities for each class (depends on model).
47+ * vector<double> with probabilities for each class (depends on model)
4848 */
4949 ClfResult classify (const FlowFeatures& flowFeatures) override ;
5050
@@ -59,16 +59,16 @@ class MlpackClassifier : public Classifier {
5959
6060 /* *
6161 * @brief Return the path of the ML model, which is currently loaded
62- * @return const std::string& path of the model.
62+ * @return const std::string& path of the model
6363 */
64- const std::string getMlModelPath () const noexcept ;
64+ const std::string& getMlModelPath () const noexcept override ;
6565
6666 /* *
6767 * @brief Reload the model from file, which was set in the constructor
6868 *
69- * @param logicalName contains the logical name of the trained model.
69+ * @param logicalName contains the logical name of the trained model
7070 */
71- void reloadModelFromDisk (const std::string& logicalName = " trained_data" );
71+ void reloadModelFromDisk (const std::string& logicalName = " trained_data" ) override ;
7272
7373private:
7474 /* *
0 commit comments