Skip to content

Commit

Permalink
Systematic framework tests for all machines
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 10, 2019
1 parent 94664d8 commit 79d7838
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 210 deletions.
2 changes: 1 addition & 1 deletion src/shogun/machine/BaggingMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ void CBaggingMachine::init()
m_features = NULL;
m_combination_rule = NULL;
m_labels = NULL;
m_num_bags = 0;
m_num_bags = 100;
m_bag_size = 0;
m_all_oob_idx = SGVector<bool>();
m_oob_indices = NULL;
Expand Down
4 changes: 2 additions & 2 deletions src/shogun/machine/Machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool CMachine::train(CFeatures* data)
if (train_require_labels())
{
if (m_labels == NULL)
SG_ERROR("%s@%p: No labels given", get_name(), this)
SG_ERROR("No labels provided.\n", get_name())

m_labels->ensure_valid(get_name());
}
Expand All @@ -47,7 +47,7 @@ bool CMachine::train(CFeatures* data)

if (support_feature_dispatching())
{
REQUIRE(data != NULL, "Features not provided!");
REQUIRE(data != NULL, "No features provided.\n");
REQUIRE(
data->get_num_vectors() == m_labels->get_num_labels(),
"Number of training vectors (%d) does not match number of "
Expand Down
206 changes: 0 additions & 206 deletions tests/unit/evaluation/CrossValidation_unittest.cc

This file was deleted.

Loading

0 comments on commit 79d7838

Please sign in to comment.