#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import theano.tensor as tt import pymc3 as pm # In[5]: with pm.Model() as model: β = pm.Normal('β', 0.5, sd=1000, shape=2) # Initialize a tensor of zeros, and replace all but one with the variables betas = tt.set_subtensor(tt.zeros(shape=3)[1:], β) # In[6]: betas.tag.test_value