ML practitioner path

ML PRACTITIONER PATH

Ship logic-augmented models fast

Use DeepLog Modules, shapes, and the formula parser to plug symbolic constraints into PyTorch training code without changing your modeling stack. Start with runnable cells and ship the first constraint-driven model quickly.

Prefer to dig into internals? Switch to the NeSy developer path.

Who it’s for

  • Practitioners adding semantic constraints to existing PyTorch models.

  • Readers who want runnable examples over theory.

Prerequisites

  • Basic PyTorch and notebook familiarity.

Estimated time

  • ⏱️ 45–75 minutes start to finish.

Guided notebook flow

  1. Symbols and shapes (⏱️ 10 min)

    Name the entries of a tensor with symbols, and read a tensor back by those names.

  2. DeepLog Module (⏱️ 10 min)

    Run a minimal DeepLogModule, see input/output shapes, and understand how shape validation guards your training code.

  3. From Formulas to Modules (⏱️ 10–20 min)

    Use the parser to turn formulas into DeepLogModule objects that drop into your training code.

  4. Semantic Loss: exactly-one constraint (⏱️ 20–30 min)

    Regularize a semi-supervised MNIST model with an exactly-one constraint to see DeepLog in a standard ML loop.

Keep going

  • Revisit the tutorial overview to pick another path or dive into deeper internals when ready.