Refactor into library

This commit is contained in:
2023-11-10 11:24:27 +01:00
parent 55286168cb
commit 74fb0968c7
5 changed files with 7 additions and 24 deletions

View File

@@ -3,7 +3,6 @@
#include "PyWrap.h"
#include <string>
#include <map>
#include <iostream>
#include <sstream>
#include <boost/python/numpy.hpp>
@@ -117,7 +116,6 @@ namespace pywrap {
void PyWrap::setHyperparameters(const clfId_t id, const json& hyperparameters)
{
// Set hyperparameters as attributes of the class
std::cout << "Building dictionary of arguments" << std::endl;
PyObject* pValue;
PyObject* instance = getClass(id);
for (const auto& [key, value] : hyperparameters.items()) {