BayesNet/bayesnet/ensembles/BoostAODE.h

26 lines
810 B
C
Raw Permalink 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-15 14:16:04 +00:00
#ifndef BOOSTAODE_H
#define BOOSTAODE_H
#include <string>
#include <vector>
2024-03-08 21:20:54 +00:00
#include "bayesnet/classifiers/SPODE.h"
#include "Boost.h"
2024-05-16 09:17:21 +00:00
2023-08-15 14:16:04 +00:00
namespace bayesnet {
class BoostAODE : public Boost {
2023-08-15 14:16:04 +00:00
public:
explicit BoostAODE(bool predict_voting = false);
virtual ~BoostAODE() = default;
2023-11-08 17:45:35 +00:00
std::vector<std::string> graph(const std::string& title = "BoostAODE") const override;
protected:
void trainModel(const torch::Tensor& weights) override;
private:
std::vector<int> initializeModels();
2023-08-15 14:16:04 +00:00
};
}
#endif