Implement hyperparameters with json file

This commit is contained in:
2023-11-18 11:56:10 +01:00
parent 28f3d87e32
commit 89c4613591
25 changed files with 112 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
#include "SVC.h"
namespace pywrap {
void SVC::setHyperparameters(nlohmann::json& hyperparameters)
void SVC::setHyperparameters(const nlohmann::json& hyperparameters)
{
// Check if hyperparameters are valid
const std::vector<std::string> validKeys = { "C", "gamma", "kernel", "random_state" };