Type Error on Regression Problem

Try specifying the shape in beta_1 and beta_2. Also, you should avoid using discrete latent variable - changing beta_1 and beta_2 to continue variable would help model inference.