A general learning framework.