Skip to content

Commit

Permalink
Fixes JuliaAI#112
Browse files Browse the repository at this point in the history
  • Loading branch information
bensadeghi committed Jan 4, 2020
1 parent 8994140 commit 31bbd90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/classification/heterogeneous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ features[:,4] = tf[inds]
model = build_tree(labels, features)
preds = apply_tree(model, features)
cm = confusion_matrix(labels, preds)
@test cm.accuracy > 0.95
@test cm.accuracy > 0.9

n_subfeatures = 2
n_trees = 3
model = build_forest(labels, features, n_subfeatures, n_trees)
preds = apply_forest(model, features)
cm = confusion_matrix(labels, preds)
@test cm.accuracy > 0.95
@test cm.accuracy > 0.9

n_subfeatures = 7
model, coeffs = build_adaboost_stumps(labels, features, n_subfeatures)
preds = apply_adaboost_stumps(model, coeffs, features)
cm = confusion_matrix(labels, preds)
@test cm.accuracy > 0.95
@test cm.accuracy > 0.9

end # @testset

0 comments on commit 31bbd90

Please sign in to comment.