Skip to content

Commit

Permalink
do svm and ranger Pt.6
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Jan 18, 2024
1 parent 4958f88 commit 009e4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ using Test
end

@testset "----- Testing dynrmf (svm) -----" begin
val = Ahead.dynrmf(y, h=6, kernel="linear")
val = Ahead.dynrmf(y, h=6, method="svm", kernel="linear")
println(val)
@test isapprox(round(val[:residuals][1]), 0)
@test val[:x] == y
end

@testset "----- Testing dynrmf (ranger) -----" begin
val = Ahead.dynrmf(y, h=6, num_trees=50)
val = Ahead.dynrmf(y, h=6, method="randomforest", num_trees=50)
println(val)
@test isapprox(round(val[:residuals][1]), 0)
@test val[:x] == y
Expand Down

0 comments on commit 009e4b1

Please sign in to comment.