RBM training using MATLAB and Python gives same log probability of training set