Logistic Regression Algorithm Code Example