add validate and predict feature, and performance log