BayesNet
1.0.7.
Bayesian Network and basic classifiers Library.
Loading...
Searching...
No Matches
TAN.h
1
// ***************************************************************
2
// SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez
3
// SPDX-FileType: SOURCE
4
// SPDX-License-Identifier: MIT
5
// ***************************************************************
6
7
#ifndef TAN_H
8
#define TAN_H
9
#include "Classifier.h"
10
namespace
bayesnet {
11
class
TAN
:
public
Classifier
{
12
public
:
13
TAN
();
14
virtual
~TAN
() =
default
;
15
void
setHyperparameters(
const
nlohmann::json& hyperparameters_)
override
;
16
std::vector<std::string> graph(
const
std::string& name =
"TAN"
)
const override
;
17
protected
:
18
void
buildModel(
const
torch::Tensor& weights)
override
;
19
private
:
20
int
parent = -1;
21
};
22
}
23
#endif
bayesnet::Classifier
Definition
Classifier.h:14
bayesnet::TAN
Definition
TAN.h:11
bayesnet
classifiers
TAN.h
Generated by
1.12.0