Machine learning, economic regimes and portfolio optimisation. (2018)