namedtensor / notation

108 stars 5 forks source link

Expressing summing along an axis #30

Closed azpoliak closed 3 years ago

azpoliak commented 3 years ago

Would it make sense to refer to this in English as summing A over the foo axis?

https://github.com/namedtensor/notation/blob/76988af5cf7c6720cf2f7ee61b4fbc587f8d012a/main.tex#L171-L178

srush commented 3 years ago

Yeah I like "over". Since our names are always "wholes" you could probably say "summing over the foo".

Doesn't always work. "summing over the hidden axis" is better.

azpoliak commented 3 years ago

great! I'll add a pr with that in the text shortly

srush commented 3 years ago

well let's wait for @davidweichiang to weigh in. We thought carefully about axis nouns, let's do the same for prepositions :)

azpoliak commented 3 years ago

Sgtm

On Fri, Dec 18, 2020 at 12:48 PM Sasha Rush notifications@github.com wrote:

well let's wait for @davidweichiang https://github.com/davidweichiang to weigh in. We thought carefully about axis nouns, let's do the same for prepositions :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/namedtensor/notation/issues/30#issuecomment-748227805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3XBFTS2JBK73TVC5HR25LSVOIWRANCNFSM4VBMGPMQ .

davidweichiang commented 3 years ago

Sure, that sounds fine to me. The other usage I see in the NumPy/PyTorch documentation is "along the foo axis."

srush commented 3 years ago

I think I prefer "over" since it is less geometric. "summing over the vocab" sounds better to me than "summing along the vocab axis". The first seems to imply a space whereas the second seems to be a physical axis.

azpoliak commented 3 years ago

Good timing. The PR uses "over" instead of "along" or "across"