2024-04-11 16:02:49 +00:00
|
|
|
// ***************************************************************
|
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez
|
|
|
|
// SPDX-FileType: SOURCE
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// ***************************************************************
|
|
|
|
|
2023-07-14 23:05:36 +00:00
|
|
|
#ifndef AODE_H
|
|
|
|
#define AODE_H
|
2024-03-08 21:20:54 +00:00
|
|
|
#include "bayesnet/classifiers/SPODE.h"
|
2023-07-14 23:05:36 +00:00
|
|
|
#include "Ensemble.h"
|
|
|
|
namespace bayesnet {
|
|
|
|
class AODE : public Ensemble {
|
|
|
|
public:
|
2024-03-11 23:27:50 +00:00
|
|
|
AODE(bool predict_voting = false);
|
2023-07-29 15:27:43 +00:00
|
|
|
virtual ~AODE() {};
|
2024-02-24 17:36:09 +00:00
|
|
|
void setHyperparameters(const nlohmann::json& hyperparameters) override;
|
2023-11-08 17:45:35 +00:00
|
|
|
std::vector<std::string> graph(const std::string& title = "AODE") const override;
|
2024-02-24 17:36:09 +00:00
|
|
|
protected:
|
|
|
|
void buildModel(const torch::Tensor& weights) override;
|
2023-07-14 23:05:36 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|