building a bridge from training to testing