-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC: use notebook-style in plot_prediction_latency.py # 8000 22418
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
DOC: use notebook-style in plot_prediction_latency.py #22418
Conversation
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.
OK so I think this example is a bit long and complicated already. Probably it needs to be looked at one day to make it a bit simpler:
For this PR I think I would be fine:
- adding a header "Benchmark and plot helper functions" before the
def atomic_benchmark_estimator
function definition - remove "main code" that does not bring anything
- move
start_time = time.time()
in the "Benchmark bulk/atomic ..." section
fix linting error fix2 linting
c3b53a5
to
1010f53
Compare
@lesteve Added the changes |
Thanks, I think an additional changes which may be nice:
|
I think you can use something like this (not 100% sure) to create only code cells: benchmark(configuration)
## %
# benchmark n_features ...
percentile = 90
plot_n_features_influence(...)
# %%
# benchmark througput |
@lesteve I have updated the script |
Looks good, merging, thanks a lot! |
…2418) Co-authored-by: Sumit Saha <sumitsaha@SumitSahaMacBook.local>
Fixes plot_prediction_latency.py for #22406