repowiserepowise
Sign in
pgmpy/pgmpy
OverviewDocsArchitectureKnowledge GraphFilesCode HealthSecurityRefactoring

People & History

CommitsContributorsDecisions
Chat
Stats
repowiserepowise
ExplorePricingDocs
Sign in
repowisepgmpy/pgmpy
PG
PG

pgmpy / pgmpy

pythondevbef9a8b88.3K linessynced 2mo ago

Code health

6.2out of 10Fair

This codebase scores 6.2 out of 10 for code health, which we rate fair. It also scores maintainability 8.0 and static performance 9.9 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 46 of 672 files are git hotspots, and they average 4.1 — which is where the fixes pay off most.

Full health report →
Documentation841pages0 with model-written prose, 841 built from the indexScore validation19/202.8× baselineTop-ranked files that did go on to need a bug fixDead code316exportsUnused exports that nothing in the graph reaches

Do next

1 thing worth doing this quarter.

Worth planning

  • Delete 316 unused symbols and files (5,430 lines)

    Nothing in the graph reaches them, across 305 files; every reader and agent pays to skip them.

    symbols
    316
    lines
    5,430
    safe to delete
    Yes(inferred)
    Medium effort

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report
    Small effort
  • Review the 24 proposed decisions

    None is accepted yet, so nothing can drift from one and agents get no enforced guidance from them.

    proposed
    24
    accepted
    0
    Medium effort
Lines of code
88.3K
Files
672
Symbols
4,222
Modules
3
Languages
3

Recent activity

All commits →

Commits

  • bef9a8b9[ENH] update get_district to return all c-components when nodes=None (#3520)2mo ago
  • b24b8580[ENH] ANM pairwise causal discovery estimator (#3479)2mo ago
  • 3996f12b[ENH] Add root_nodes support to ExpertKnowledge (#3484)2mo ago
  • 6cfddb7cfix: remove undefined ProbModelXMLReader/Writer from readwrite/__all__ (#3499)2mo ago
  • 79f6762efix: change structure score variable and parents annotations to Hashable (#3498)2mo ago
  • a4d5ab24Add AdditiveNoiseModel (ANM) simulator dataset (#3476)2mo ago

Decisions

  • Patch read_hf_file at its source and all import call sitesproposed · 2mo ago
  • Redirect Hugging Face asset reads to local committed test fixturesproposed · 2mo ago
  • Adds a test for DAG.copyproposed · 2mo ago
  • Fix failing doctests in pgmpy/base/DAG.pyproposed · 2mo ago
  • Allow DAG.get_random to generate graphs with fixed number of nodesproposed · 2mo ago
  • Adds causal stats in get_stats() method of DAGproposed · 2mo ago
▸

Everything we found

1,782 open

Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.

  • worst item is critical severity. Code health871Untested hotspot · pgmpy/causal_discovery/_base.py17 findings · 9.5 deducted→
  • worst item is medium severity. Refactoring94_evaluate+1.5 health, M effort · pgmpy/metrics/orientation_cm.py→
  • worst item is medium severity. Decisions70pgmpy/base/DAG.py24 awaiting review · 46 hotspots ungoverned→
  • worst item is medium severity. Ownership430pgmpy/causal_discovery/HillClimbSearch.py82% single-owner concentration, 7 commits in 90d→
  • worst item is low severity. Dead code317GaussScoreUnreachable class (18 lines)→

Composition

Open the graph →
python 100%
makefile 0%r 0%

Explore this codebase

  • Docs841 pages across 3 modules→
  • ChatAsk this codebase a question and get an answer with its sources.→
  • Files672 files with per-file docs, health and history→
  • ArchitectureDependency graph, layers, and 0 entry points→
  • Code healthPer-file scores, 1,130 open findings, coverage and refactoring targets→
  • Knowledge graphEntities, communities, and the paths between them→
  • Change couplingFiles that keep changing together, mined from commit history→
  • CommitsChange-risk ranked history with agent provenance→
  • ContributorsBus factor, per-file maintainers, and the human/agent split→
  • StatsSize class, origin, lifetime churn, rhythm and records→
  • CostsWhat indexing this snapshot cost, by model and by run.→