Create version 1.2.1 #40

Merged
rmontanana merged 11 commits from ldi into main 2025-07-19 20:42:25 +00:00
20 changed files with 693 additions and 106 deletions
Showing only changes of commit aa77745e55 - Show all commits

View File

@@ -8,7 +8,10 @@
#include <memory>
namespace bayesnet {
TANLd::TANLd() : TAN(), Proposal(dataset, features, className) {}
TANLd::TANLd() : TAN(), Proposal(dataset, features, className)
{
validHyperparameters = validHyperparameters_ld; // Inherits the valid hyperparameters from Proposal
}
TANLd& TANLd::fit(torch::Tensor& X_, torch::Tensor& y_, const std::vector<std::string>& features_, const std::string& className_, map<std::string, std::vector<int>>& states_, const Smoothing_t smoothing)
{
checkInput(X_, y_);