Skip to content

Commit

Permalink
Merge pull request JuliaAI#95 from norci/patch-1
Browse files Browse the repository at this point in the history
fixed a typo in tree.jl.
  • Loading branch information
bensadeghi committed May 24, 2019
2 parents 3fe2e37 + 074190a commit 640babd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classification/tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ module treeclassifier
if length(Y) != n_samples
throw("dimension mismatch between X and Y ($(size(X)) vs $(size(Y))")
elseif length(W) != n_samples
throw("dimension mismatch between X and W ($(size(X)) vs $(size(Y))")
throw("dimension mismatch between X and W ($(size(X)) vs $(size(W))")
elseif max_depth < -1
throw("unexpected value for max_depth: $(max_depth) (expected:"
* " max_depth >= 0, or max_depth = -1 for infinite depth)")
Expand Down

0 comments on commit 640babd

Please sign in to comment.