rrtucci / texnn

Python script that genetates LaTex code that draws a Neural Net as a causal DAG (Bayesian Network). Python wrapper for xy-pic LaTeX package.
MIT License
10 stars 1 forks source link

plates: how add size annotation to bottom right corner #3

Open murphyk opened 5 months ago

murphyk commented 5 months ago

I see the rock_layers.py example. But is there a way to specify the size of the plate in the bottom right corner of each box, as is traditional?

murphyk commented 5 months ago

It seems that currently texnn generates some text outside the figure saying "10 layers" or whatever. But I want to generate something like https://en.wikipedia.org/wiki/Plate_notation

rrtucci commented 5 months ago

If you look in my book Bayesuvius under "Plate Notation" (the chapters are in alphabetical order), you will find a brief chapter explaining the Plate Notation features of texnn. The way I understand it, you can have plates in series and in parallel. The wikipedia article considers only plates in parallel, but the plates in the vanilla transformer are in series. I struggled to decide where in the f*cking diagram to put the "legend" for the plate. It's tricky, specially when you have overlapping plates. I finally decided to put it "outside the figure", just below the diagram like a caption

On Mon, Apr 15, 2024 at 3:00 PM Kevin P Murphy @.***> wrote:

It seems that currently texnn generates some text outside the figure saying "10 layers" or whatever. But I want to generate something like https://en.wikipedia.org/wiki/Plate_notation

— Reply to this email directly, view it on GitHub https://github.com/rrtucci/texnn/issues/3#issuecomment-2057604049, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZWTYPB4HW4Z5CZISENWETY5QPVDAVCNFSM6AAAAABGH2RHAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJXGYYDIMBUHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>