Error control and loss functions for the deep learning inversion of borehole resistivity measurements. (4th January 2021)