Skip to content
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

Fix off by one error in benchmark samples #8785

Merged
merged 1 commit into from
Aug 7, 2020
Merged

Conversation

saulshanabrook
Copy link
Member

The change in N should be 1 - the total number of samples, because we also include 0. For example, if NUMBER_SAMPLES is 3 and MAX_N is 10, the three should be at n= 0, 5, and 10 so the diff between them should be 5 = 10 / (3 - 1).

References

None

Code changes

Fixes bug in benchmark code

User-facing changes

None

Backwards-incompatible changes

None

The change in N should be 1 - the total number of samples, because we also include 0. For example, if NUMBER_SAMPLES is 3 and MAX_N is 10, the three should be at n= 0, 5, and 10  so the diff between them should be 5 = 10 / (3 - 1).
@saulshanabrook saulshanabrook requested a review from echarles August 7, 2020 15:46
@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

Copy link
Member

@echarles echarles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@echarles echarles merged commit 322a3f1 into master Aug 7, 2020
@blink1073 blink1073 added this to the 3.0 milestone Sep 11, 2020
@jasongrout jasongrout deleted the saulshanabrook-patch-1 branch December 24, 2020 05:11
@github-actions github-actions bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Jun 23, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants