namedtensor / notation

108 stars 5 forks source link

@boazbk first pass #31

Closed boazbk closed 3 years ago

boazbk commented 3 years ago

This is my first pass. I still want to make a more detailed pass, but wanted to first make a pull request with the higher level changes first so @srush and @davidweichiang can comment. I probably introduced some typos - will go over this later.

The high level changes are:

1) Added an abstract to summarize the rationale and contents 2) Added a 1 page quick summary which should convey the main ideas and notation to any ML researcher 3) I added some latex macros to make axes more convenient. Specifically I use \newaxis{ax} to define a command \ax that corresponds to \name{ax}. I also created commands for dot products and sums that don't automatically add the \name{..} to the subscript, so that we can use them with multiple axes, annotated axes, or with this command. 4) I modified the mathematical definitions somewhat based on our discussions.

Haven't made a pass at all on the bulk of the paper, which are the examples.

boazbk commented 3 years ago

Good question- will check - can always write a special filter using panflute (I’ve done it before - not that hard)

On Fri, Dec 18, 2020 at 3:53 PM David Chiang notifications@github.com wrote:

@davidweichiang commented on this pull request.

In namedtensor.sty https://github.com/namedtensor/notation/pull/31#discussion_r546085252:

@@ -12,3 +12,19 @@ \newcommand{\nsum}[1]{\sum\limits{\name{#1}}} \newcommand{\nfun}[2]{\mathop{\mathop{\mathrm{#2}}\limits{\name{#1}}}} \newcommand{\nmov}[3]{\left[#3\right]_{\name{#1}\rightarrow\name{#2}}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Boaz's commands +% define a new axis, right now if we do \newaxis{ax} then \ax becomes a command for \name{ax} +% when I get the time, I want to add an optional argument that allows to use a different name +% for the command and the displayed name (in case there is a command we don't want to clobber) +\newcommand{\newaxis}[1]{\expandafter\def \csname #1\endcsname{\name{#1}}}

Does this work with pandoc's conversion to HTML?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/namedtensor/notation/pull/31#pullrequestreview-555806881, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJYO6E3R6PVAE7GAZR45NTSVO6L5ANCNFSM4VBPC7XA .

boazbk commented 3 years ago

Added example with colors to highlight dangling and aligned axes, see pdf file

davidweichiang commented 3 years ago

I think I've incorporated most of these changes, so am closing.