BayesNet
1.0.7.
Bayesian Network and basic classifiers Library.
Loading...
Searching...
No Matches
SPODE.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 SPODE_H
8
#define SPODE_H
9
#include "Classifier.h"
10
11
namespace
bayesnet {
12
class
SPODE
:
public
Classifier
{
13
public
:
14
explicit
SPODE
(
int
root);
15
virtual
~SPODE
() =
default
;
16
void
setHyperparameters(
const
nlohmann::json& hyperparameters_)
override
;
17
std::vector<std::string> graph(
const
std::string& name =
"SPODE"
)
const override
;
18
protected
:
19
void
buildModel(
const
torch::Tensor& weights)
override
;
20
private
:
21
int
root;
22
};
23
}
24
#endif
bayesnet::Classifier
Definition
Classifier.h:14
bayesnet::SPODE
Definition
SPODE.h:12
bayesnet
classifiers
SPODE.h
Generated by
1.12.0