-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add verbose option to solvers #142
Conversation
src/ParamEstim.jl
Outdated
@@ -138,7 +138,7 @@ end | |||
(cf::RSSCostFunction)(params::AbstractVector) = cf(candidate(cf, params)) | |||
|
|||
_solve(cf::RSSCostFunction, params::AbstractVector) = _solve(cf, cf._func(params)) | |||
_solve(::RSSCostFunction, prob::Problem) = solve(prob) | |||
_solve(::RSSCostFunction, prob::Problem) = solve(prob, verbose=false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
_solve(::RSSCostFunction, prob::Problem) = solve(prob, verbose=false) | |
_solve(::RSSCostFunction, prob::Problem) = solve(prob, verbose = false) |
test/test_dirichlet.jl
Outdated
@@ -121,17 +121,7 @@ | |||
|
|||
@testset "unsolved" begin | |||
prob = DirichletProblem(identity, i = 0, b = 1) | |||
θ = solve(prob, maxiters = 0) | |||
θ = @test_logs (:warn, "Maximum number of iterations reached without convergence") solve(prob, maxiters = 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
θ = @test_logs (:warn, "Maximum number of iterations reached without convergence") solve(prob, maxiters = 0) | |
θ = @test_logs (:warn, "Maximum number of iterations reached without convergence") solve(prob, | |
maxiters = 0) |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #142 +/- ##
==========================================
- Coverage 79.58% 79.32% -0.26%
==========================================
Files 22 22
Lines 764 774 +10
==========================================
+ Hits 608 614 +6
- Misses 156 160 +4 ☔ View full report in Codecov by Sentry. |
No description provided.