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
|
2024-05-15 17:49:15 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2024-03-08 21:20:54 +00:00
|
|
|
#include "bayesnet/classifiers/SPODE.h"
|
2024-05-15 17:49:15 +00:00
|
|
|
#include "Boost.h"
|
2024-05-16 09:17:21 +00:00
|
|
|
|
2023-08-15 14:16:04 +00:00
|
|
|
namespace bayesnet {
|
2024-05-15 17:49:15 +00:00
|
|
|
class BoostAODE : public Boost {
|
2023-08-15 14:16:04 +00:00
|
|
|
public:
|
2024-04-30 09:02:23 +00:00
|
|
|
explicit BoostAODE(bool predict_voting = false);
|
2023-11-18 10:56:10 +00:00
|
|
|
virtual ~BoostAODE() = default;
|
2023-11-08 17:45:35 +00:00
|
|
|
std::vector<std::string> graph(const std::string& title = "BoostAODE") const override;
|
2023-08-20 15:57:38 +00:00
|
|
|
protected:
|
|
|
|
void trainModel(const torch::Tensor& weights) override;
|
|
|
|
private:
|
2024-03-20 22:33:02 +00:00
|
|
|
std::vector<int> initializeModels();
|
2023-08-15 14:16:04 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|