add argument useTrainIdx to matchview constructor