BayesNet/bayesnet/classifiers/SPODE.h

23 lines
673 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-07-14 10:59:47 +00:00
#ifndef SPODE_H
#define SPODE_H
2023-07-22 21:07:56 +00:00
#include "Classifier.h"
2023-07-14 10:59:47 +00:00
namespace bayesnet {
2023-07-22 21:07:56 +00:00
class SPODE : public Classifier {
2023-07-14 10:59:47 +00:00
private:
int root;
protected:
2023-08-15 13:04:56 +00:00
void buildModel(const torch::Tensor& weights) override;
2023-07-14 10:59:47 +00:00
public:
2023-07-29 17:38:42 +00:00
explicit SPODE(int root);
virtual ~SPODE() = default;
2023-11-08 17:45:35 +00:00
std::vector<std::string> graph(const std::string& name = "SPODE") const override;
2023-07-14 10:59:47 +00:00
};
}
#endif