Draft logistic regression using matrix data source