How about using an option `--test`? When it is given, use it for evaluation, otherwise split the input data.