A Neural Network Model of Hysteresis Including Temperature Dependence