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

FEAT: Add random.draw #397

Merged
merged 4 commits into from
Mar 12, 2018
Merged

FEAT: Add random.draw #397

merged 4 commits into from
Mar 12, 2018

Conversation

oyamad
Copy link
Member

@oyamad oyamad commented Mar 11, 2018

Close #393.

(Also revert the changes by #391, as we should not have both random_choice and random.draw.)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 94.971% when pulling 4dec227 on random_draw into d575ea5 on master.

@jstac
Copy link
Contributor

jstac commented Mar 11, 2018

@mmcky I'm fully in favor of this PR and it would help me clean up master if we could move quickly on it. Thanks.

def draw(cdf, size=None):
"""
Generate a random sample according to the cumulative distribution
given by `cdf`. Jit-complied by Numba in nonptython mode.
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean "Jit-compiled by Numba in nopython mode"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah good catch, thanks.

@mmcky
Copy link
Contributor

mmcky commented Mar 12, 2018

I think this PR can be merged. @oyamad can you apply ready label when you're happy with it.

@oyamad oyamad added the ready label Mar 12, 2018
@mmcky mmcky merged commit 8026e8f into master Mar 12, 2018
@mmcky mmcky deleted the random_draw branch March 12, 2018 00:52
@jstac jstac mentioned this pull request Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants