Dimension mismatch in the normal likelihood with theano variables

Hello @cluhmann, here’s the full error message. I have already cross-checked the dimension of each variable several times and they are exactly the same as mentioned in the problem description. Thanks for the help.

> File "C:/User/U674666/Project/Metamodelling-and-Optimization/src/PyMC3/AERO/Bayesian_Model.py", line 165, in <module>
>     Y_obs = pm.Normal('Y_obs', mu_y, sigma_y, observed=training_data)
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\pymc3\distributions\distribution.py", line 122, in __new__
>     return model.Var(name, dist, data, total_size, dims=dims)
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\pymc3\model.py", line 1176, in Var
>     var = ObservedRV(
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\pymc3\model.py", line 1812, in __init__
>     self.logp_elemwiset = distribution.logp(data)
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\pymc3\distributions\continuous.py", line 536, in logp
>     return bound((-tau * (value - mu) ** 2 + tt.log(tau / np.pi / 2.0)) / 2.0, sigma > 0)
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\theano\tensor\var.py", line 120, in __sub__
>     return theano.tensor.basic.sub(self, other)
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\theano\graph\op.py", line 253, in __call__
>     compute_test_value(node)
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\theano\graph\op.py", line 130, in compute_test_value
>     required = thunk()
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\theano\graph\op.py", line 606, in rval
>     thunk()
>   File "C:\Users\U674666\Anaconda3\envs\env_py39_full\lib\site-packages\theano\link\c\basic.py", line 1771, in __call__
>     raise exc_value.with_traceback(exc_trace)
> ValueError: Input dimension mis-match. (input[0].shape[0] = 26, input[1].shape[0] = 1)