Skip to content

Commit 359007c

Browse files
committed
.
1 parent f6f8b7d commit 359007c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/glr/constructors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ With `scale_penalty_with_samples = false` the objective function is
139139
``L(y, Xθ) + λ|θ|₂²/2 + γ|θ|₁``.
140140
"""
141141
function LogisticRegression(
142-
λ::Real=1.0,
142+
λ::Real=eps(),
143143
γ::Real=0.0;
144144
# kwargs
145145
lambda::Real=λ,

test/fit/quantile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ y1a = outlify(y1, 0.1)
9292
θ_ista = fit(rr, X, y1a, solver=ISTA())
9393
θ_qr_lasso = rcopy(QUANTREG.rq_fit_lasso(X1, y1a))[:coefficients]
9494
@test isapprox(J(θ_ls), 888.3748, rtol=1e-5)
95-
@test isapprox(J(θ_qr_lasso), 425.5264, rtol=1e-5)
95+
@test isapprox(J(θ_qr_lasso), 425.5, rtol=1e-3)
9696
# Our algorithms are close enough
9797
@test isapprox(J(θ_fista), 425.0526, rtol=1e-5)
9898
@test isapprox(J(θ_ista), 425.4113, rtol=1e-5)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using MLJLinearModels, Test, LinearAlgebra
22
using Random, StableRNGs, DataFrames, ForwardDiff
33
import MLJBase # not MLJModelInterface, to mimic the full interface
44

5-
DO_COMPARISONS = false; include("testutils.jl")
5+
DO_COMPARISONS = true; include("testutils.jl")
66

77
m("UTILS"); include("utils.jl")
88

0 commit comments

Comments
 (0)