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 9, 2019
1 parent 94664d8 commit 123757c
Show file tree
Hide file tree
Showing 4 changed files with 390 additions and 209 deletions.
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 123757c

Please sign in to comment.