Regression analysis is used to understand which of the independent variables (our features: GCR, NPHI, PE, ILD, and ILM) are related to the dependent variable; that is, the type of lithofacies.
The following lines of Python code create a logistic regression classifier model and print its accuracy statistics: