Add info to output
This commit is contained in:
parent
c2eb727fc7
commit
bbe5302ab1
@ -54,19 +54,18 @@ namespace platform {
|
|||||||
for (int nfold = 0; nfold < config.n_folds; nfold++) {
|
for (int nfold = 0; nfold < config.n_folds; nfold++) {
|
||||||
auto clf = Models::instance()->create(config.model);
|
auto clf = Models::instance()->create(config.model);
|
||||||
auto [train, test] = fold->getFold(nfold);
|
auto [train, test] = fold->getFold(nfold);
|
||||||
// auto train_t = torch::tensor(train);
|
auto train_t = torch::tensor(train);
|
||||||
// auto test_t = torch::tensor(test);
|
auto test_t = torch::tensor(test);
|
||||||
// auto X_train = X.index({ "...", train_t });
|
auto X_train = X.index({ "...", train_t });
|
||||||
// auto y_train = y.index({ train_t });
|
auto y_train = y.index({ train_t });
|
||||||
// auto X_test = X.index({ "...", test_t });
|
auto X_test = X.index({ "...", test_t });
|
||||||
// auto y_test = y.index({ test_t });
|
auto y_test = y.index({ test_t });
|
||||||
showProgressFold(nfold + 1, getColor(clf->getStatus()), "a");
|
showProgressFold(nfold + 1, getColor(clf->getStatus()), "a");
|
||||||
// Train model
|
// Train model
|
||||||
// clf->fit(X_train, y_train, features, className, states);
|
// clf->fit(X_train, y_train, features, className, states);
|
||||||
showProgressFold(nfold + 1, getColor(clf->getStatus()), "b");
|
showProgressFold(nfold + 1, getColor(clf->getStatus()), "b");
|
||||||
showProgressFold(nfold + 1, getColor(clf->getStatus()), "c");
|
showProgressFold(nfold + 1, getColor(clf->getStatus()), "c");
|
||||||
sleep(1);
|
std::cout << "\b\b\b, \b" << flush;
|
||||||
std::cout << "\b\b\b, " << flush;
|
|
||||||
}
|
}
|
||||||
delete fold;
|
delete fold;
|
||||||
}
|
}
|
||||||
@ -89,7 +88,7 @@ namespace platform {
|
|||||||
auto hyperparameters = platform::HyperParameters(datasets.getNames(), hyperparam_line);
|
auto hyperparameters = platform::HyperParameters(datasets.getNames(), hyperparam_line);
|
||||||
processFile(dataset, datasets, hyperparameters);
|
processFile(dataset, datasets, hyperparameters);
|
||||||
}
|
}
|
||||||
std::cout << std::endl;
|
std::cout << "end." << std::endl;
|
||||||
}
|
}
|
||||||
// Save results
|
// Save results
|
||||||
save();
|
save();
|
||||||
|
Loading…
Reference in New Issue
Block a user