Implement hyperparameters with json file
This commit is contained in:
@@ -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" };
|
||||
|
Reference in New Issue
Block a user