Skip to content

Commit

Permalink
add assertation
Browse files Browse the repository at this point in the history
  • Loading branch information
OXPHOS committed Jul 26, 2016
1 parent 8803679 commit 27cc30e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/multiclass/tree/CHAIDTree.cpp
Expand Up @@ -677,6 +677,7 @@ CLabels* CCHAIDTree::apply_tree(CFeatures* data)

CLabels* CCHAIDTree::apply_from_current_node(SGMatrix<float64_t> fmat, node_t* current)
{
REQUIRE(current != NULL, "The tree cannot be empty.\n");
int32_t num_vecs=fmat.num_cols;

SGVector<float64_t> labels(num_vecs);
Expand Down

0 comments on commit 27cc30e

Please sign in to comment.