Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-212] [R] Fix Random Samplers from Uniform and Gaussian distribution in R bindings #10450

Merged
merged 3 commits into from Apr 9, 2018

Conversation

anirudhacharya
Copy link
Member

@anirudhacharya anirudhacharya commented Apr 7, 2018

Description

Sampling from uniform and normal distribution is currently broken in mxnet's R bindings. Check this issue - #9804 (comment), I have given the root cause of the bug in the comments.

This code was working in mxnet v0.10 but is currently broken in mxnet version >= v 1.10.

The change that broke the samplers was introduced in this PR - https://github.com/apache/incubator-mxnet/pull/3334/files#diff-69861896bcb94074f59474beba4e4b90

Marking @tqchen and @piiswrong who were on the above PR so that they can weigh in their thoughts about this change.

  • Add tests for the two distributions.

@hetong007

@anirudhacharya anirudhacharya changed the title [R] Fix Random Samplers from Uniform and Gaussian distribution in R bindings [MXNET-212] [R] Fix Random Samplers from Uniform and Gaussian distribution in R bindings Apr 7, 2018
Copy link
Contributor

@hetong007 hetong007 left a comment

Choose a reason for hiding this comment

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

Please add test for it.

R-package/tests/testthat/test_random.R Outdated Show resolved Hide resolved
@anirudhacharya
Copy link
Member Author

@hetong007 can you please merge this PR.

@hetong007 hetong007 merged commit 43f0e4d into apache:master Apr 9, 2018
@anirudhacharya anirudhacharya deleted the Rshuffle branch April 16, 2018 18:06
rahul003 pushed a commit to rahul003/mxnet that referenced this pull request Jun 4, 2018
…ution in R bindings (apache#10450)

* fix random samplers-uniform and gaussian

* add tests for gaussian and uniform distributions

* fix precision issues that may cause flakiness.
zheng-da pushed a commit to zheng-da/incubator-mxnet that referenced this pull request Jun 28, 2018
…ution in R bindings (apache#10450)

* fix random samplers-uniform and gaussian

* add tests for gaussian and uniform distributions

* fix precision issues that may cause flakiness.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants