Add Thread max spawning to Network

This commit is contained in:
2024-06-18 23:18:24 +02:00
parent fa26aa80f7
commit 0b31780d39
2 changed files with 74 additions and 26 deletions

View File

@@ -56,7 +56,8 @@ namespace bayesnet {
private:
std::map<std::string, std::unique_ptr<Node>> nodes;
bool fitted;
float maxThreads = 0.95;
float maxThreads = 0.95; // Coefficient to multiply by the number of threads available
int maxThreadsRunning; // Effective max number of threads running
int classNumStates;
std::vector<std::string> features; // Including classname
std::string className;