Replacce pragma once with ifndef

This commit is contained in:
2024-05-18 13:00:13 +02:00
parent c165a4bdda
commit 25bd7a42c6
41 changed files with 118 additions and 89 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#ifndef MODELREGISTER_H
#define MODELREGISTER_H
static platform::Registrar registrarT("TAN",
[](void) -> bayesnet::BaseClassifier* { return new bayesnet::TAN();});
@@ -33,4 +34,6 @@ static platform::Registrar registrarSvc("SVC",
static platform::Registrar registrarRaF("RandomForest",
[](void) -> bayesnet::BaseClassifier* { return new pywrap::RandomForest();});
static platform::Registrar registrarXGB("XGBoost",
[](void) -> bayesnet::BaseClassifier* { return new pywrap::XGBoost();});
[](void) -> bayesnet::BaseClassifier* { return new pywrap::XGBoost();});
#endif