-
Notifications
You must be signed in to change notification settings - Fork 500
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 innerproduct function to match Dot Product #1004
Conversation
Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
@@ -313,7 +313,7 @@ A space corresponds to the function used to measure the distance between two poi | |||
</tr> | |||
<tr> | |||
<td>innerproduct</td> | |||
<td>\[ Distance(X, Y) = \sum_{i=1}^n (X_i - Y_i) \]</td> | |||
<td>\[ Distance(X, Y) = \sum_{i=1}^n (X_i * Y_i) \]</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the math multiplication sign (dot) instead of the programming multiplication sign (*) here? Or we can omit the multiplication sign altogether because multiplication is implicit in math. If you omit the multiplication sign, parentheses are not needed here.
In general, should we denote vectors as lowercase(or uppercase) bold letters and scalars as lowercase non-bold letters? I think this notation is easier to understand and is the default mathematical notation for vectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to dot. Let's address the 2nd comment in a different issue, since that would require changing more than just this formula.
Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f)
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> (cherry picked from commit d65b56f) Co-authored-by: Naarcha-AWS <[email protected]>
* Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS <[email protected]> * Fix formatting Signed-off-by: Naarcha-AWS <[email protected]> * Use dot instead Signed-off-by: Naarcha-AWS <[email protected]> * Remove parenthesies Signed-off-by: Naarcha-AWS <[email protected]> * Remove space Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Naarcha-AWS [email protected]
Issues Resolved
Fixes #397
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.