Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Jun 2, 2023
1 parent 35f270c commit b157a0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/linpred.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ leverage_weights(p::LinPred, wt::AbstractVector) = sqrt.(1 .- leverage(p, wt))
else
# adjoint of X so R is square
# cannot use in-place qr!
F = qr(X)
F = qr(X')
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/qreg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end
@testset "Argument type: $(typeof(A))" for (A, b) in data_tuples
m1 = fit(QuantileRegression, A, b; quantile=τ, verbose=false)
m2 = quantreg(A, b; quantile=τ, verbose=false)
@test_nowarn println(m2)
@test_nowarn show(devnull, m2)
@test all(coef(m1) .== coef(m2))

# make sure that it is not a TableRegressionModel
Expand Down Expand Up @@ -74,7 +74,7 @@ end

@testset "$(τ) quantile" for τ in τs
m1 = fit(QuantileRegression, form, data; quantile=τ, verbose=false)
@test_nowarn println(m1)
@test_nowarn show(devnull, m1)
β = coef(m1)
res = residuals(m1)
## The quantile regression line exactly passes through p points, with p number of columns of X.
Expand Down
2 changes: 1 addition & 1 deletion test/robustridge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ est2 = MEstimator(loss2)
@test isapprox(coef(m3), coef(m4); rtol=1e-5)

# Test printing the model
@test_nowarn println(m3)
@test_nowarn show(devnull, m3)

# refit
refit!(m5; ridgeλ=10, initial_scale=:L1)
Expand Down

0 comments on commit b157a0b

Please sign in to comment.