Electromagnetic and weak structure of the nucleon studied within Bayesian neural network methods