Master Logistic Regression for binary and multi-class text classification. Learn to handle sparse matrices and optimize hyperparameters.