Conceptual Guides¶
Guides to each feature area of quivers, with the mathematics each feature relies on. The QVR language reference specifies each source form, Semantics gives the formal denotations, and the tutorials build complete models.
Foundations¶
- Core Types & Algebras: finite objects, and the
Algebrathat fixes how scores combine in composition. - Transformations and Composition Rules: converting a morphism's scores between algebras, the levels of composition rules, and contractions of several morphisms.
- Morphisms & Composition: morphisms as score tables, composition, parallel product, marginalization, transpose, and trace.
The QVR language¶
- The QVR DSL: Overview: the file format, the compilation pipeline, the grammar, and comments.
- DSL Declarations: objects, morphisms and their roles,
kernels, learned functions, deductions, and the combinators
fan,repeat,stack, andscan. - DSL Programs and Let-Expressions: program steps, the
overclause, primitives, factor expressions, and inline distributions. - DSL Contractions: contractions of several morphisms, with the wiring inferred from their types or given as an einsum string.
Probabilistic programming¶
- Probabilistic Programs: running, sampling, and scoring a compiled program, and building one in Python.
- Hierarchical Programs: templates for crossed random effects, and marginalizing a discrete latent once per group.
- Continuous Spaces and Morphisms: continuous spaces, conditional distributions between them, and normalizing flows.
- Continuous Distribution Families: the registered distribution families, their event dimensions, and priors on matrices.
- Stochastic Morphisms: Markov kernels between finite sets, conditioning, Bayesian inversion, and the Giry monad.
Inference¶
- Inference Foundations: traces, sample sites, the batch axis of the input, data inputs, and conditioning.
- Variational Inference: Guides, Objectives, and SVI: guides, objectives, gradient estimators, the training loop, and predictive sampling.
- MCMC and Hybrid Samplers: Hamiltonian Monte Carlo (HMC) and the No-U-Turn Sampler (NUTS), composed kernels, tempered sequential Monte Carlo, and convergence diagnostics.
Categorical structures¶
- Categorical Structures: functors, natural transformations, adjunctions, monoidal products, and traces as library classes.
- Monads & Comonads: the monad and comonad classes, Kleisli categories, and algebras for a monad.
- Enriched Category Theory: ends and coends, the Yoneda lemma, Kan extensions, weighted limits, profunctors, Day convolution, and optics on finite tensors.
- Compositional Effects: type classes for effect-driven interpretation, lifting grammar rules through effects, and effect handlers.
Structured prediction¶
- Weighted Deduction Systems: parsing as weighted deduction, differentiable charts, and probabilistic grammars with priors.
- Tree and Graph Autoencoders: Signatures and Encoders: signatures of terms and encoders that fold a term into a vector.
- Tree and Graph Autoencoders: Decoders and Losses: decoders that score and sample terms, and training losses.
Analysis¶
- Analysis: Data and Formulas: dataframes and regression formulas compiled to QVR.
- Analysis: Fitting and Diagnostics: fitting in one call, ArviZ diagnostics, convergence checks, simulation-based calibration, and initialization tools.
Tools¶
- Interactive tools: REPL, kernel, and language server: the REPL, the Jupyter kernel, and the editor language server.
- Migrating
.qvrsource between grammar revisions:qvr migrate.