Machine-learning models for finance in R, Python and MATLAB