Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, Aurélien Géron, 2022 (O'Reilly Media) - This practical guide explains machine learning concepts, including detailed discussions and examples of classification evaluation metrics using popular Python libraries like scikit-learn.
scikit-learn User Guide: 3.3. Metrics and scoring: quantifying the quality of predictions, scikit-learn developers, 2024 - The official documentation provides comprehensive explanations and examples for various classification evaluation metrics, including the classification_report and different averaging strategies, directly relevant to the Python code snippet.