Skip to content

Instantly share code, notes, and snippets.

import numpy as np
import pymc as pm
import pytensor.tensor as pt
import pytensor.xtensor as px
N = 100
seed = sum(map(ord, "xarray>=numpy?"))
rng = np.random.default_rng(seed)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardoV94
ricardoV94 / rosetta_stone_pymc_stan.ipynb
Last active March 18, 2025 03:41
rosetta_stone_pymc_stan.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import pytensor
import pytensor.tensor as pt
from pytensor.graph.basic import Constant, io_toposort
from pytensor.compile import SharedVariable
from pytensor.compile.mode import get_mode
from pytensor.printing import _debugprint
# Define graph
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.