Create Xaode2 and add initializer factor in predict

This commit is contained in:
2025-03-03 12:38:05 +01:00
parent 9a8b960ce8
commit b2002d341c
4 changed files with 468 additions and 3 deletions

View File

@@ -15,6 +15,7 @@
#include "common/Timer.hpp"
#include "CountingSemaphore.hpp"
#include "Xaode.hpp"
#include "Xaode2.hpp"
namespace platform {
class ExpClf : public bayesnet::Boost {
@@ -44,7 +45,8 @@ namespace platform {
void remove_last_parent();
protected:
bool debug = false;
Xaode aode_;
// Xaode aode;
Xaode2 aode_;
torch::Tensor weights_;
const std::string CLASSIFIER_NOT_FITTED = "Classifier has not been fitted";
inline void normalize_weights(int num_instances)