BayesNet/bayesnet/ensembles/AODELd.h

25 lines
1019 B
C
Raw Normal View History

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:
AODELd(bool predict_voting = true);
2023-08-06 09:31:44 +00:00
virtual ~AODELd() = default;
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_) override;
2023-11-08 17:45:35 +00:00
std::vector<std::string> graph(const std::string& name = "AODELd") const override;
protected:
void trainModel(const torch::Tensor& weights) override;
void buildModel(const torch::Tensor& weights) override;
2023-08-06 09:31:44 +00:00
};
}
#endif // !AODELD_H