A Study Of Nuclear Structure And Neutron Stars With A Bayesian Neural Network Approach