Skip to content

Commit

Permalink
add some debugging lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed May 1, 2024
1 parent bd5aa8b commit c806dc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/regressor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ end
# check different resources (CPU1, CUDALibs, etc)) give about the same loss:
reference = losses[1]
@test all(x->abs(x - reference)/reference < 1e-6, losses[2:end])
@show losses

Random.seed!(123)
ymatrix = hcat(1 .+ X.x1 - X.x2, 1 .- 2X.x4 + X.x5);
Expand Down Expand Up @@ -138,5 +139,6 @@ end
# check different resources (CPU1, CUDALibs, etc)) give about the same loss:
reference = losses[1]
@test all(x->abs(x - reference)/reference < 1e-6, losses[2:end])
@show losses

true

0 comments on commit c806dc5

Please sign in to comment.