Galaxy merger rates up to z~3 using a Bayesian deep learning model: a major-merger classifier using IllustrisTNG simulation data