Skip to content

Commit

Permalink
set iteration numbers to minimum([5 * p, 3000]) as in the R implement…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
jbytecode committed Aug 15, 2024
1 parent 4187b82 commit bab3d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function lts(X::AbstractMatrix{Float64}, y::AbstractVector{Float64}; iters=nothi
h = Int(floor((n + p + 1.0) / 2.0))

if isnothing(iters)
iters = minimum([500 * p, 3000])
iters = minimum([5 * p, 3000])
end

allindices = collect(1:n)
Expand Down

0 comments on commit bab3d81

Please sign in to comment.