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

Matrix multiplication example fixes. #1159

Merged
merged 1 commit into from
Dec 1, 2016
Merged

Conversation

jgosmann
Copy link
Collaborator

@jgosmann jgosmann commented Aug 30, 2016

Motivation and context:
I was starting to look at #431 and to understand how we do matrix multiplication in the first place I went through the example notebook and made a few changes (no need to merge all of them depending on what people think):

  • There was one typo.
  • It did not work with other matrix dimensions. Now it works with more (hopefully all).
  • To me it seems clearer to use the product network instead of doing the product with an ensemble array.

Interactions with other PRs:
#431 also makes some changes, some of which address the same things. This PR supersedes the changes to the notebook in #431.

How has this been tested?
Executed the whole notebook with the matrices from the last commit. Trying a few more matrix shapes wouldn't hurt, but I haven't done that yet. Tried a bunch of other matrix shapes, all worked.

How long should this take to review?

  • Average (neither quick nor lengthy)

Types of changes:

  • Documentation

Checklist:

  • I have read the CONTRIBUTING.rst document.
  • I have updated the documentation accordingly.
  • I have included a changelog entry.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@mention-bot
Copy link

@jgosmann, thanks for your PR! By analyzing the annotation information on this pull request, we identified @tbekolay to be a potential reviewer

@jgosmann
Copy link
Collaborator Author

The test failure is unrelated to this ... I'll open an issue for that.

@Seanny123
Copy link
Contributor

LGTM.

@Seanny123
Copy link
Contributor

Do I need to review this again or did you just clean up the history?

@jgosmann
Copy link
Collaborator Author

Just rebased this and added a changelog entry. No need to review this again.

@tbekolay
Copy link
Member

tbekolay commented Dec 1, 2016

LGTM! Merging.

- Specify matrix order.

  The order matters somewhat and I think it helps understanding
  when this is clearly defined from the start.

- Fix typo.

- Use product network.

  To me this seems easier to understand because the reader does not
  need to figure out what parts are related to the matrix
  multiplication and which are just there to calculate products. If
  the reader wants to know how the product can be calculated, we have
  the scalar multiplication example.

- Change matrix dimensions.

  Also fix some problems when changing the matrix dimensions.
@tbekolay tbekolay merged commit befc564 into master Dec 1, 2016
@tbekolay tbekolay deleted the matmul-example-fixes branch December 1, 2016 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants