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-29 16:22:15 +00:00
|
|
|
|
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
|
|
|
public:
|
2023-07-29 17:38:42 +00:00
|
|
|
explicit SPODE(int root);
|
2023-11-18 10:56:10 +00:00
|
|
|
virtual ~SPODE() = default;
|
2024-12-17 09:14:14 +00:00
|
|
|
void setHyperparameters(const nlohmann::json& hyperparameters_) override;
|
2023-11-08 17:45:35 +00:00
|
|
|
std::vector<std::string> graph(const std::string& name = "SPODE") const override;
|
2024-12-17 09:14:14 +00:00
|
|
|
protected:
|
|
|
|
void buildModel(const torch::Tensor& weights) override;
|
|
|
|
private:
|
|
|
|
int root;
|
2023-07-14 10:59:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|