moved tr/te split to preprocessing