A comparison between a neural network and the likelihood method to evaluate the performance of a transition radiation detector