Machine learning  validation and testing