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-08-06 09:31:44 +00:00
|
|
|
#ifndef AODELD_H
|
|
|
|
#define AODELD_H
|
2024-03-08 21:20:54 +00:00
|
|
|
#include "bayesnet/classifiers/Proposal.h"
|
|
|
|
#include "bayesnet/classifiers/SPODELd.h"
|
2023-08-06 09:31:44 +00:00
|
|
|
#include "Ensemble.h"
|
|
|
|
|
|
|
|
namespace bayesnet {
|
|
|
|
class AODELd : public Ensemble, public Proposal {
|
|
|
|
public:
|
2024-02-24 17:36:09 +00:00
|
|
|
AODELd(bool predict_voting = true);
|
2023-08-06 09:31:44 +00:00
|
|
|
virtual ~AODELd() = default;
|
2024-06-11 09:40:45 +00:00
|
|
|
AODELd& fit(torch::Tensor& X_, torch::Tensor& y_, const std::vector<std::string>& features_, const std::string& className_, map<std::string, std::vector<int>>& states_, const Smoothing_t smoothing) override;
|
2023-11-08 17:45:35 +00:00
|
|
|
std::vector<std::string> graph(const std::string& name = "AODELd") const override;
|
2024-02-24 17:36:09 +00:00
|
|
|
protected:
|
2024-06-11 09:40:45 +00:00
|
|
|
void trainModel(const torch::Tensor& weights, const Smoothing_t smoothing) override;
|
2024-02-24 17:36:09 +00:00
|
|
|
void buildModel(const torch::Tensor& weights) override;
|
2023-08-06 09:31:44 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // !AODELD_H
|