implementation of the regression algorithms using ML-lib