BayesNet/bayesnet/ensembles/BoostA2DE.h

25 lines
809 B
C
Raw Permalink Normal View History

2024-05-15 09:53:17 +00:00
// ***************************************************************
// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez
// SPDX-FileType: SOURCE
// SPDX-License-Identifier: MIT
// ***************************************************************
#ifndef BOOSTA2DE_H
#define BOOSTA2DE_H
#include <string>
#include <vector>
2024-05-15 09:53:17 +00:00
#include "bayesnet/classifiers/SPnDE.h"
#include "Boost.h"
2024-05-15 09:53:17 +00:00
namespace bayesnet {
class BoostA2DE : public Boost {
2024-05-15 09:53:17 +00:00
public:
explicit BoostA2DE(bool predict_voting = false);
virtual ~BoostA2DE() = default;
std::vector<std::string> graph(const std::string& title = "BoostA2DE") const override;
protected:
void trainModel(const torch::Tensor& weights) override;
2024-05-16 09:17:21 +00:00
private:
std::vector<int> initializeModels();
2024-05-15 09:53:17 +00:00
};
}
#endif