{"adoption": {"forks": 126, "observed_at": "2026-08-28T04:04:54.981879+00:00", "stars": 1506}, "canonical_url": "https://ross.abutalabs.com/products/pycm", "card": {"archived": false, "artifact_type": "library", "description": "Multi-class confusion matrix library in Python", "domain": ["machine-learning", "data-science", "artificial-intelligence", "analytics"], "enriched": true, "function": ["machine-learning", "data-science", "analytics", "math"], "health_score": 97, "homepage": "http://pycm.io", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["sepandhaghighi/pycm"], "name": "sepandhaghighi/pycm", "platform": ["python", "cross-platform"], "pushed_at": "2026-08-17T01:32:39+00:00", "repo": "sepandhaghighi/pycm", "stars": 1506, "tags": ["confusion-matrix", "classification-metrics", "model-evaluation", "statistics"], "topics": ["machine-learning", "confusion-matrix", "matrix", "statistics", "statistical-analysis", "accuracy", "ml", "ai", "mathematics", "data-mining", "data-analysis", "classification", "data-science", "data", "neural-network", "multiclass-classification", "deep-learning", "artificial-intelligence", "deeplearning", "evaluation"], "urls": [], "use_cases": ["evaluate a multi-class classifier with confusion matrix metrics", "compute accuracy, precision, recall, and F1 scores in Python", "compare performance of several classification models", "generate a confusion matrix from predicted and actual label vectors", "get per-class and overall statistics for a predictive model", "analyze classification results for a research paper"], "what_it_is": "PyCM is a Python library for computing multi-class confusion matrices and a wide range of per-class and overall evaluation statistics. It accepts both actual/predicted vectors and direct matrices, making it a comprehensive post-classification model evaluation tool for data scientists.", "when_to_avoid": ["you only need simple binary accuracy and already use scikit-learn", "you need model training or hyperparameter tuning rather than evaluation", "you work outside the Python ecosystem"], "when_to_choose": ["you need a broad array of confusion matrix statistics beyond what scikit-learn exposes", "you work with multi-class classification and want per-class and overall metrics in one tool", "you want to build a confusion matrix directly from a matrix or from label vectors"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pycm", "repo": "sepandhaghighi/pycm", "role": "main", "score": 86}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:54.981879+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:32:40.932773+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6e6cdf511803668475b85fe15c0d62f0009fadf0befee68852d470fdb6978b50", "fetched_at": "2026-08-28T04:04:54.981879+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sepandhaghighi/pycm"}, {"content_hash": "69003e7a9edd17f629f161de6f70275ef85d5c7eac147a74ffd446697fa93113", "fetched_at": "2026-08-29T11:37:17.754361+00:00", "kind": "homepage", "missing": false, "url": "http://pycm.io"}, {"content_hash": "60bde4fd2616191aa62b68bd8bda0a38019d80544b8df9cf8a009429d828b6a5", "fetched_at": "2026-08-29T11:37:17.763300+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pycm/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 100, "rhythm": 62}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3145, "days_push": 17, "days_rel": 177, "gap_med": 88, "n_releases_24m": 6}, "score": 86, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}