First approach

This commit is contained in:
2025-06-29 18:46:11 +02:00
parent 676637fb1b
commit 31fa9cd498
10 changed files with 417 additions and 10 deletions

View File

@@ -0,0 +1,26 @@
#include <iostream>
#include <bayesnet/BaseClassifier.h>
#include <bayesnet/classifiers/TAN.h>
#include <bayesnet/network/Network.h>
int main() {
std::cout << "Testing BayesNet library integration..." << std::endl;
try {
// Test basic instantiation
bayesnet::Network network;
std::cout << "✓ Network class instantiated successfully" << std::endl;
// Test TAN classifier instantiation
bayesnet::TAN tan;
std::cout << "✓ TAN classifier instantiated successfully" << std::endl;
std::cout << "✓ All basic tests passed!" << std::endl;
std::cout << "BayesNet library is working correctly." << std::endl;
return 0;
} catch (const std::exception& e) {
std::cerr << "✗ Test failed: " << e.what() << std::endl;
return 1;
}
}