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

[numpy] random.rand #15909

Closed
wants to merge 6 commits into from
Closed

Conversation

kshitij12345
Copy link
Contributor

@kshitij12345 kshitij12345 commented Aug 15, 2019

Description

Add
https://docs.scipy.org/doc/numpy-1.16.0/reference/generated/numpy.random.rand.html

Heavily Referenced from #15903
@xidulu Thank You.

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • Wrappers
  • Test

-------
out : ndarray
A ``(d0, d1, ..., dn)``-shaped array of floating-point samples from
the standard normal distribution, or a single such float if
Copy link
Contributor

Choose a reason for hiding this comment

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

Should remove "from the standard normal".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix it. Thank You.

-------
out : ndarray
A ``(d0, d1, ..., dn)``-shaped array of floating-point samples from
the standard normal distribution, or a single such float if
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

* fix document string -> Returns description.
@roywei roywei added the Numpy label Aug 19, 2019
Copy link
Contributor

@haojin2 haojin2 left a comment

Choose a reason for hiding this comment

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

LGTM

@haojin2
Copy link
Contributor

haojin2 commented Aug 27, 2019

Please rebase with current master and resolve the conflicts @kshitij12345

@kshitij12345
Copy link
Contributor Author

@haojin2
Sure will do that and update.

Rebase with master or numpy branch?

Copy link
Contributor

@reminisce reminisce left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution.

python/mxnet/numpy/random.py Show resolved Hide resolved
Copy link
Contributor

@reminisce reminisce left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution. Could you please rebase to resolve the conflicts?

@reminisce reminisce changed the base branch from numpy to numpy_1_6_prs October 20, 2019 04:53
@reminisce reminisce changed the base branch from numpy_1_6_prs to numpy October 20, 2019 04:55
add relevant tests

address comments.

* fix document string -> Returns description.
@kshitij12345
Copy link
Contributor Author

@reminisce @haojin2 @xidulu Sorry for the delayed action. Please review.

@reminisce
Copy link
Contributor

@kshitij12345 Thanks for your contribution. It's merged through #16554. I added missing implementation in mxnet/ndarray/numpy/random.py.

@kshitij12345
Copy link
Contributor Author

@reminisce Oh did not notice it. Thank You. Will close this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants