BayesNet 1.0.7.
Bayesian Network and basic classifiers Library.
Loading...
Searching...
No Matches
XBA2DE.h
1// ***************************************************************
2// SPDX-FileCopyrightText: Copyright 2025 Ricardo Montañana Gómez
3// SPDX-FileType: SOURCE
4// SPDX-License-Identifier: MIT
5// ***************************************************************
6
7#ifndef XBA2DE_H
8#define XBA2DE_H
9#include <string>
10#include <vector>
11#include "Boost.h"
12namespace bayesnet {
13 class XBA2DE : public Boost {
14 public:
15 explicit XBA2DE(bool predict_voting = false);
16 virtual ~XBA2DE() = default;
17 std::vector<std::string> graph(const std::string& title = "XBA2DE") const override;
18 std::string getVersion() override { return version; };
19 protected:
20 void trainModel(const torch::Tensor& weights, const Smoothing_t smoothing) override;
21 private:
22 std::vector<int> initializeModels(const Smoothing_t smoothing);
23 std::vector<std::vector<int>> X_train_, X_test_;
24 std::vector<int> y_train_, y_test_;
25 std::string version = "0.9.7";
26 };
27}
28#endif