remove topn from nnet, add metric so that it can support topn