Refactor version method in PyClassifier
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#include "RandomForest.h"
|
||||
|
||||
namespace pywrap {
|
||||
std::string RandomForest::version()
|
||||
void RandomForest::setHyperparameters(nlohmann::json& hyperparameters)
|
||||
{
|
||||
return sklearnVersion();
|
||||
// Check if hyperparameters are valid
|
||||
const std::vector<std::string> validKeys = { "n_estimators", "n_jobs", "random_state" };
|
||||
checkHyperparameters(validKeys, hyperparameters);
|
||||
this->hyperparameters = hyperparameters;
|
||||
}
|
||||
} /* namespace pywrap */
|
Reference in New Issue
Block a user