Inputs
Choose the package source, import path, and modules that match your app, service, or notebook environment.
SDK code usage docs
These public docs focus on practical code usage: install, graph generation, discrete reasoning, layout, continuous causal workflows, and package manifests. Full licensed API reference is provided with purchased SDK packages.
Install and import
These public pages are code usage documentation for evaluation and adoption. Licensed SDK packages include the deeper API reference after purchase.
Choose the package source, import path, and modules that match your app, service, or notebook environment.
You get the concrete constructors and helper functions used by the later samples, so installation is tied directly to usage.
Package / module
Python
Install the licensed Python SDK from your artifact feed and initialize it before using reasoning logic.
Discrete BBN graph generation
Use the generator helpers when you want deterministic seed-driven graph creation for demos, tests, and benchmarking before you hand-tune a production model.
Pass graph-size controls such as node count, edge density, state count, and a seed so the generated shape is reproducible.
The generator returns a graph plus starter parameters that can flow directly into model construction and benchmark fixtures.
Package / module
Python
Discrete BBN
Every language now starts from explicit graph structure and CPT definitions so the first model is created in code instead of being waved in from a file.
Provide a directed graph and one CPT per node, including root distributions and any parent-conditioned rows.
The constructor returns a reasoning model that can answer exact associational, interventional, and counterfactual queries.
Package / module
Python
Discrete BBN evidence
Darkstar uses pquery as the short alias for a probability query: it returns posterior distributions after conditioning on evidence. Start with an observed state, then move to weighted finding and virtual evidence when you want softer beliefs.
Choose the queried nodes, then provide either a hard observed value, a weighted finding over the node states, or a virtual evidence vector over the same states.
Each pquery call returns the posterior distribution for the requested nodes, making it easy to compare how different evidence styles shift the result.
Package / module
Python
Use the discrete model from the build example above; pquery accepts hard observation maps and weighted evidence potentials built by the helper methods.
Discrete BBN
The discrete quickstart now covers marginals, joints, conditionals, evidence probabilities, interventions, and counterfactual mirrors instead of stopping at a single posterior call.
Choose the nodes or target you want, then add factual evidence, optional given variables, and hypothetical interventions when you move into counterfactual analysis.
Associational calls return potentials or scalar evidence probabilities, iquery returns causal effects, and the counterfactual helpers mirror the same marginal, joint, conditional, and evidence forms.
Package / module
Python
Graph layout
Layout helpers give you deterministic node coordinates for customer-facing graph views without forcing you into one front-end framework.
Pass the graph you already built plus a named layout algorithm supported by the wrapper or runtime.
You get stable node coordinates that can be fed into canvases, SVGs, editors, and dashboard components.
Package / module
Python
Continuous Gaussian SCM
The continuous examples mirror the discrete ones: define the graph, provide ordered parameters, and construct the model in code.
Define the graph, the ordered variable list, and the Gaussian parameters such as means and covariance terms expected by the wrapper.
You get a continuous reasoning model ready for posterior, intervention, and counterfactual workflows.
Package / module
Python
Continuous Gaussian SCM
For continuous SCMs, pquery is the probability-query alias for conditioning on observed numeric values. Use iquery for interventions and cquery for abduction-action-prediction workflows.
Use observed numeric values for conditioning, then provide interventions or counterfactual scenarios when you want to compare worlds.
The calls return posterior moments, interventional summaries, and counterfactual estimates that you can chart or feed into downstream analysis.
Package / module
Python
Download manifest
Every SDK archive includes a manifest at the zip root, and the account page provides the same manifest as a separate download for that archive.
Choose a language, platform, and SDK version from your account page, then download the archive and its matching manifest.
The manifest identifies the release, platform, package descriptor snapshots, included docs, native runtime files, and per-file SHA-256 hashes.
Package / module
Python
The account page also provides the same manifest as a separate download so you can review file names, sizes, and hashes before installing the archive.