Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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