Skip to content

Instantly share code, notes, and snippets.

@FRodrigues21
FRodrigues21 / cfreportlatex.py
Last active January 4, 2023 19:16
Parse and convert scikit-learn classification_report to latex (Python 3 / Booktabs)
"""
Code to parse sklearn classification_report
Original: https://gist.github.com/julienr/6b9b9a03bd8224db7b4f
Modified to work with Python 3 and classification report averages
"""
import sys
import collections