Machine learning systems in constrained environments