logistic and linear regression using filesystem as "backend"