library comile complete and begin tests
Some checks failed
CI/CD Pipeline / Create Release Package (push) Has been cancelled
CI/CD Pipeline / Code Linting (push) Has been cancelled
CI/CD Pipeline / Build and Test (Debug, clang, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Debug, gcc, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-20.04) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-20.04) (push) Has been cancelled
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-latest) (push) Has been cancelled
CI/CD Pipeline / Docker Build Test (push) Has been cancelled
CI/CD Pipeline / Performance Benchmarks (push) Has been cancelled
CI/CD Pipeline / Build Documentation (push) Has been cancelled

This commit is contained in:
2025-06-23 12:05:35 +02:00
parent e07eb4d2ed
commit 7b27d5c1f3
9 changed files with 361 additions and 172 deletions

View File

@@ -134,17 +134,29 @@ namespace svm_classifier {
break;
case KernelType::RBF:
params["gamma"] = is_gamma_auto() ? "auto" : gamma_;
if (is_gamma_auto()) {
params["gamma"] = "auto";
} else {
params["gamma"] = gamma_;
}
break;
case KernelType::POLYNOMIAL:
params["degree"] = degree_;
params["gamma"] = is_gamma_auto() ? "auto" : gamma_;
if (is_gamma_auto()) {
params["gamma"] = "auto";
} else {
params["gamma"] = gamma_;
}
params["coef0"] = coef0_;
break;
case KernelType::SIGMOID:
params["gamma"] = is_gamma_auto() ? "auto" : gamma_;
if (is_gamma_auto()) {
params["gamma"] = "auto";
} else {
params["gamma"] = gamma_;
}
params["coef0"] = coef0_;
break;
}