More-flexible machine learning