do not display results for now
This commit is contained in:
parent
c36aead212
commit
ac39efe00a
2 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
from .go_benchmark_it import main
|
from .go_benchmark_it import main
|
||||||
|
|
||||||
main(["thursday", "everything", "-2"])
|
main(["thursday", "everything", "-2"], display=False)
|
||||||
main(["thursday", "everything", "-3"])
|
main(["thursday", "everything", "-3"], display=False)
|
||||||
main(["thursday", "everything", "-4"])
|
main(["thursday", "everything", "-4"], display=False)
|
||||||
|
|
|
@ -154,7 +154,7 @@ for problem_list in GO_BENCHMARKS.values():
|
||||||
), "please use Infinity instead; it's basically equivalent"
|
), "please use Infinity instead; it's basically equivalent"
|
||||||
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv, display=True):
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ def main(argv):
|
||||||
scores, prices = {}, {}
|
scores, prices = {}, {}
|
||||||
all_opt_names = set()
|
all_opt_names = set()
|
||||||
for obj_name, obj_res in results.items():
|
for obj_name, obj_res in results.items():
|
||||||
if not please_stop_the_spam:
|
if display and not please_stop_the_spam:
|
||||||
print()
|
print()
|
||||||
m1(f"{obj_name}:")
|
m1(f"{obj_name}:")
|
||||||
all_res = {}
|
all_res = {}
|
||||||
|
@ -427,10 +427,11 @@ def main(argv):
|
||||||
prices[opt_name] + place_scores[mi] / price_insignificance
|
prices[opt_name] + place_scores[mi] / price_insignificance
|
||||||
)
|
)
|
||||||
|
|
||||||
more_scores = perform_another_experimental_scoring_method(results)
|
if display:
|
||||||
|
more_scores = perform_another_experimental_scoring_method(results)
|
||||||
|
|
||||||
for blah, points in zip(("best", "worst"), (scores, prices)):
|
for blah, points in zip(("best", "worst"), (scores, prices)):
|
||||||
if not no_summary:
|
if display and not no_summary:
|
||||||
print(
|
print(
|
||||||
f"\n\033[1m{blah} scoring optimizers:\033[m"
|
f"\n\033[1m{blah} scoring optimizers:\033[m"
|
||||||
f" (awards={place_scores})"
|
f" (awards={place_scores})"
|
||||||
|
@ -440,7 +441,7 @@ def main(argv):
|
||||||
for opt_name, opt_point in sorted(points.items(), key=lambda t: -t[1]):
|
for opt_name, opt_point in sorted(points.items(), key=lambda t: -t[1]):
|
||||||
# place = place_names[i] if i < len(place_names) else " "
|
# place = place_names[i] if i < len(place_names) else " "
|
||||||
# delta = scores.get(opt_name, 0) - prices.get(opt_name, 0)
|
# delta = scores.get(opt_name, 0) - prices.get(opt_name, 0)
|
||||||
if not no_summary:
|
if display and not no_summary:
|
||||||
print(
|
print(
|
||||||
fancy_output(
|
fancy_output(
|
||||||
opt_name, scores.get(opt_name, 0), prices.get(opt_name, 0)
|
opt_name, scores.get(opt_name, 0), prices.get(opt_name, 0)
|
||||||
|
@ -458,7 +459,7 @@ def main(argv):
|
||||||
if opt_name not in negative:
|
if opt_name not in negative:
|
||||||
negative.append(opt_name)
|
negative.append(opt_name)
|
||||||
|
|
||||||
if no_summary:
|
if display and no_summary:
|
||||||
print(
|
print(
|
||||||
f"\n\033[1malternatively scored optimizers:\033[m"
|
f"\n\033[1malternatively scored optimizers:\033[m"
|
||||||
f" (awards={place_scores})"
|
f" (awards={place_scores})"
|
||||||
|
|
Loading…
Reference in a new issue