Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
add more heartbeats to tests to avoid CI timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Evizero committed Mar 19, 2017
1 parent 822d900 commit 2c767a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/tst_kfolds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ println("<HEARTBEAT>")
@test 1 <= minimum(fv.test_indices[i-1]) < minimum(fv.test_indices[i]) < nobs(var)
end
@test cumobs == nobs(var)

println("<HEARTBEAT>")
end

# check that the stored obsdim is correct
Expand Down Expand Up @@ -131,6 +133,7 @@ println("<HEARTBEAT>")
fv = FoldsView(var, kfolds(nobs(var), 10)...)
@test length(fv) == 10
@test getobs(fv[end]) == getobs(fv[length(fv)])
println("<HEARTBEAT>")
end
fv = FoldsView(X, kfolds(nobs(X))...)
@test typeof(@inferred(fv[1])) <: Tuple
Expand Down Expand Up @@ -179,6 +182,7 @@ println("<HEARTBEAT>")
@test length(unique(all_train_indices)) == 150
@test length(unique(all_test_indices)) == 150
@test length(all_test_indices) == 150
println("<HEARTBEAT>")
end
for var in (Xs, ys)
all_train_indices = Array{Int,1}()
Expand Down Expand Up @@ -226,6 +230,7 @@ println("<HEARTBEAT>")
@test sum(length.(kf.test_indices)) == nobs(var)
end
end
println("<HEARTBEAT>")
for v1 in (X, Xv), v2 in (y, yv)
kf = kfolds((v1, v2), k = 15)
@test typeof(kf) <: FoldsView
Expand Down Expand Up @@ -270,6 +275,7 @@ println("<HEARTBEAT>")
@test sum(length.(kf.test_indices)) == nobs(var)
end
end
println("<HEARTBEAT>")
for v1 in (X, Xv), v2 in (y, yv)
@test length(leaveout((v1, v2)).test_indices) == 150
kf = leaveout((v1, v2), size = 10)
Expand Down

0 comments on commit 2c767a8

Please sign in to comment.