add getNotes method

This commit is contained in:
Ricardo Montañana Gómez 2024-02-09 10:57:19 +01:00
parent b33da34655
commit 2163e95c4a
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ namespace bayesnet {
std::vector<std::string> virtual graph(const std::string& title = "") const = 0;
virtual std::string getVersion() = 0;
std::vector<std::string> virtual topological_order() = 0;
std::vector<std::string> virtual getNotes() const = 0;
void virtual dump_cpt()const = 0;
virtual void setHyperparameters(const nlohmann::json& hyperparameters) = 0;
std::vector<std::string>& getValidHyperparameters() { return validHyperparameters; }

View File

@ -43,6 +43,7 @@ namespace bayesnet {
float score(std::vector<std::vector<int>>& X, std::vector<int>& y) override;
std::vector<std::string> show() const override;
std::vector<std::string> topological_order() override;
std::vector<std::string> getNotes() const override { return notes; }
void dump_cpt() const override;
void setHyperparameters(const nlohmann::json& hyperparameters) override; //For classifiers that don't have hyperparameters
};