adding visualization to neural network