Perplexity of a model

Defining tracker beforehand gives your a reference to it

Right, now I know what you meant. I just wrote it this way to make this particular test case shorter.