Restore the Creation model position in experiment
This commit is contained in:
parent
e2249eace7
commit
f088df14fd
@ -168,8 +168,8 @@ namespace platform {
|
|||||||
fold = new StratifiedKFold(nfolds, y, seed);
|
fold = new StratifiedKFold(nfolds, y, seed);
|
||||||
else
|
else
|
||||||
fold = new KFold(nfolds, y.size(0), seed);
|
fold = new KFold(nfolds, y.size(0), seed);
|
||||||
auto clf = Models::instance()->create(model);
|
|
||||||
for (int nfold = 0; nfold < nfolds; nfold++) {
|
for (int nfold = 0; nfold < nfolds; nfold++) {
|
||||||
|
auto clf = Models::instance()->create(model);
|
||||||
setModelVersion(clf->getVersion());
|
setModelVersion(clf->getVersion());
|
||||||
if (hyperparameters.size() != 0) {
|
if (hyperparameters.size() != 0) {
|
||||||
clf->setHyperparameters(hyperparameters);
|
clf->setHyperparameters(hyperparameters);
|
||||||
@ -212,7 +212,6 @@ namespace platform {
|
|||||||
result.addTimeTest(test_time[item].item<double>());
|
result.addTimeTest(test_time[item].item<double>());
|
||||||
item++;
|
item++;
|
||||||
}
|
}
|
||||||
clf.reset();
|
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
std::cout << "end. " << flush;
|
std::cout << "end. " << flush;
|
||||||
delete fold;
|
delete fold;
|
||||||
|
Loading…
Reference in New Issue
Block a user