Implement hyperparameters with json file
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "RandomForest.h"
|
||||
|
||||
namespace pywrap {
|
||||
void RandomForest::setHyperparameters(nlohmann::json& hyperparameters)
|
||||
void RandomForest::setHyperparameters(const nlohmann::json& hyperparameters)
|
||||
{
|
||||
// Check if hyperparameters are valid
|
||||
const std::vector<std::string> validKeys = { "n_estimators", "n_jobs", "random_state" };
|
||||
|
Reference in New Issue
Block a user