-
Notifications
You must be signed in to change notification settings - Fork 22
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
adds Dict{Symbol,DataFrame} as input for performance_profile #54
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
- Coverage 94.96% 91.33% -3.64%
==========================================
Files 4 4
Lines 139 150 +11
==========================================
+ Hits 132 137 +5
- Misses 7 13 +6
Continue to review full report at Codecov.
|
Do you have a really old branch that GitHub Actions aren’t running? |
I don't now what to say. Sorry for that. I guess I cannot have, because I'm in a new computer. First folder in |
Is this related with some error on |
Cirrus has been failing for a while, can we just remove it? @dpo @lrsantos11, can you rebase this, it has conflicting files now. |
Cirrus fails because I think the GR jll isn’t yet available there. For the tests, I really think we should just depend on UnicodePlots or some such. In fact, now that we can export the profile data without producing a plot, I wonder if we should make |
Makes sense. Do you want to do that before this is merged? |
Done in #58 (not fun to review). |
@lrsantos11 would you mind rebasing this? It shouldn’t be too hard (famous last words). |
I really think I did it in the last push. I asked @abelsiqueira but though I was done. Certanly not. Can you guys guide this newbee? |
Yes but there have been new changes in
|
We had other changes in #58 to fix the error in the Cirrus CI, and this has conflicts again. I can fix it though, I have it open right now. |
Co-authored-by: Dominique <dominique.orban@gmail.com>
Co-authored-by: Dominique <dominique.orban@gmail.com>
Co-authored-by: Dominique <dominique.orban@gmail.com>
Co-authored-by: Dominique <dominique.orban@gmail.com>
Took longer than I hoped because of last-minute issues popping up for the classes of next semester, so naturally, something broke. |
Co-authored-by: Abel Siqueira <nepper271@gmail.com>
Co-authored-by: Abel Siqueira <nepper271@gmail.com>
Co-authored-by: Dominique <dominique.orban@gmail.com>
Co-authored-by: Dominique <dominique.orban@gmail.com>
Ok, I've uncovered several things.
|
I made a PR to this branch in your repo @lrsantos11. Instead of using |
I agree with @abelsiqueira. Just let me know @dpo if it is ok for you, then I can accept the PR and we can finally finish this. |
Why not make |
@@ -129,3 +129,26 @@ function performance_profile(b::AbstractBackend, | |||
(x_plot, y_plot, max_ratio) = performance_profile_data(T, logscale=logscale, sampletol=sampletol, drawtol=drawtol) | |||
performance_profile_plot(b, x_plot, y_plot, max_ratio, xlabel, ylabel, labels, title, logscale; kwargs...) | |||
end | |||
|
|||
performance_profile(b::AbstractBackend, T :: Array{Tn,2}, labels :: Vector{S}; kwargs...) where {Tn <: Number, S <: AbstractString} = | |||
performance_profile(b, convert(Array{Float64,2}, T), convert(Vector{AbstractString}, labels); kwargs...) |
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.
I removed this because it’s ambiguous. At some point I got a StackOverflow because of it. In addition, it’s not tested.
Examples of cost functions: | ||
- `cost(df) = df.elapsed_time`: Simple `elapsed_time` cost. Assumes the solver solved the problem. | ||
- `cost(df) = (df.status .!= :first_order) * Inf + df.elapsed_time`: Takes the status of the solver into consideration. | ||
""" |
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.
Could we use the same docstring format as in the existing performance_profile
?
Implemented according to #48 and with SolverBenchmark.jl as metioned by @tmigot