Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 18, 2024
1 parent b101fbc commit 95264fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_DecisionTree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
function test_DecisionTree()
truth(x::Vector) = x[1] <= 0.5 ? -2 : (x[2] <= 0.3 ? 3 : 4)
rng = Random.MersenneTwister(1234)
features = rand(rng, 10, 2)
features = rand(rng, 100, 2)
labels = truth.(Vector.(eachrow(features)))
ml_model = DecisionTree.build_tree(labels, features)
model = Model(HiGHS.Optimizer)
Expand Down

0 comments on commit 95264fc

Please sign in to comment.