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-13 22:10:55 +00:00
|
|
|
#ifndef TAN_H
|
|
|
|
#define TAN_H
|
2023-07-22 21:07:56 +00:00
|
|
|
#include "Classifier.h"
|
2023-07-13 22:10:55 +00:00
|
|
|
namespace bayesnet {
|
2023-07-22 21:07:56 +00:00
|
|
|
class TAN : public Classifier {
|
2023-07-13 22:10:55 +00:00
|
|
|
public:
|
|
|
|
TAN();
|
2023-11-18 10:56:10 +00:00
|
|
|
virtual ~TAN() = 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 = "TAN") const override;
|
2024-12-17 09:14:14 +00:00
|
|
|
protected:
|
|
|
|
void buildModel(const torch::Tensor& weights) override;
|
|
|
|
private:
|
|
|
|
int parent = -1;
|
2023-07-13 22:10:55 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|