Skip to content

Commit

Permalink
oops. disabled test for wrong model
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed May 1, 2024
1 parent f60be3f commit 3c39a26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/image.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ end
# check different resources (CPU1, CUDALibs) give about the same loss:
reference = losses[1]
@info "Losses for each computational resource: $losses"
# @test_broken all(x->abs(x - reference)/reference < 5e-4, losses[2:end])
@test all(x->abs(x - reference)/reference < 5e-4, losses[2:end])


# # BASIC IMAGE TESTS COLOR
Expand Down Expand Up @@ -118,7 +118,7 @@ end
# check different resources (CPU1, CUDALibs, etc)) give about the same loss:
reference = losses[1]
@info "Losses for each computational resource: $losses"
# @test_broken all(x->abs(x - reference)/reference < 1e-5, losses[2:end])
@test_broken all(x->abs(x - reference)/reference < 1e-5, losses[2:end])


# # SMOKE TEST FOR DEFAULT BUILDER
Expand Down
8 changes: 4 additions & 4 deletions test/regressor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ 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
@info "Losses for each computational resource: $losses"
#@test all(x->abs(x - reference)/reference < 1e-6, losses[2:end])

Random.seed!(123)
ymatrix = hcat(1 .+ X.x1 - X.x2, 1 .- 2X.x4 + X.x5);
Expand Down Expand Up @@ -138,7 +138,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
@info "Losses for each computational resource: $losses"
#@test all(x->abs(x - reference)/reference < 1e-6, losses[2:end])

true

0 comments on commit 3c39a26

Please sign in to comment.