Check for NaN in training and remove nan from data in whistler training.