Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
algpath bench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
Numerical algebraic geometry
algpath bench
Commits
3bb79d93
Commit
3bb79d93
authored
2 months ago
by
GUILLEMOT Alexandre
Browse files
Options
Downloads
Patches
Plain Diff
correct minor bug in synthetize
parent
1cc029fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synthesize.sage
+11
-5
11 additions, 5 deletions
synthesize.sage
with
11 additions
and
5 deletions
synthesize.sage
+
11
−
5
View file @
3bb79d93
...
...
@@ -59,7 +59,7 @@ def time_format_2(t):
def steps_format(N):
if N == 0:
if N
is None or N
== 0:
return ""
elif N < 10_000:
return str(math.ceil(N))
...
...
@@ -68,7 +68,7 @@ def steps_format(N):
def steps_format_2(N):
if N == 0:
if N
is None or N
== 0:
return ""
elif N < 100:
return "$<$ 0.01"
...
...
@@ -195,6 +195,12 @@ data_stats = {
"htype": lambda data: "N" if data.split("_")[0] == "newton" else ("T" if data.split("_")[0] == "linear" else "?")
}
def median(L):
if L:
return numpy.median(L)
else:
return None
result_stats = {
"failures": lambda res: str(res["failures"]) if res["failures"] != 0 else "",
"tottime": lambda res: time_format_2(res["overheadtime"]) if "overheadtime" in res else time_format_2(res["time"]),
...
...
@@ -205,9 +211,9 @@ result_stats = {
"timeperstep": lambda res: '{0:.2e}'.format(1000*float(res["time"])/float(sum([int(p) for p in res["steplist"] if p is not None]))),
"meansteps": lambda res: steps_format(round(numpy.mean([int(p) for p in res["steplist"] if p is not None]), 1)),
"stdsteps": lambda res: steps_format(round(numpy.std([int(p) for p in res["steplist"] if p is not None]), 1)),
"medsteps": lambda res: steps_format(
numpy.
median([int(p) for p in res["steplist"] if p is not None])),
"minsteps": lambda res: steps_format(min([int(p) for p in res["steplist"] if p is not None])),
"maxsteps": lambda res: steps_format(max([int(p) for p in res["steplist"] if p is not None])),
"medsteps": lambda res: steps_format(median([int(p) for p in res["steplist"] if p is not None])),
"minsteps": lambda res: steps_format(min([int(p) for p in res["steplist"] if p is not None]
, default = None
)),
"maxsteps": lambda res: steps_format(max([int(p) for p in res["steplist"] if p is not None]
, default = None
)),
"q1steps": lambda res: steps_format(round(numpy.quantile([int(p) for p in res["steplist"] if p is not None], 0.25), 1)),
"q3steps": lambda res: steps_format(round(numpy.quantile([int(p) for p in res["steplist"] if p is not None], 0.75), 1)),
"maxprec": lambda res: str(max([int(p) for p in res["maxpreclist"]])),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment