General Machine Learning: Theory for Learning Under Variable Regimes