Add structured optimization-target diagnostics for centrality, null models, and uncertainty workflows#1312
Closed
Add structured optimization-target diagnostics for centrality, null models, and uncertainty workflows#1312
Conversation
Open
Agent-Logs-Url: https://github.com/SkBlaz/py3plex/sessions/58d30b19-4fb9-4966-946a-f6c620c7e049 Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
…profiling checks Agent-Logs-Url: https://github.com/SkBlaz/py3plex/sessions/58d30b19-4fb9-4966-946a-f6c620c7e049 Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Identify and suggest optimization targets for cent perf
Add structured optimization-target diagnostics for centrality, null models, and uncertainty workflows
Mar 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses the request to identify likely performance bottlenecks in centrality, null-model, and uncertainty paths, and expose concrete optimization targets in code (without adding new markdown docs).
It adds a programmatic diagnostics surface that returns scan-friendly, machine-readable bottleneck recommendations tied to specific functions and code locations.
New diagnostics API for performance targeting
py3plex/diagnostics/optimization_targets.pywith:OptimizationArea(centrality,null_models,uncertainty)OptimizationTarget(function/file/line range, bottleneck, complexity, optimization target, expected gain, impact)OptimizationTargetReport(targets + network context + optional profiling)find_optimization_targets(...)entrypoint for filtered, structured reportsConcrete hotspot catalog (high-signal, code-addressable)
Runtime context integration
nodes,edges,layers).PerformanceMonitorto attach observed timing stats for matching hotspot functions.Public package export
py3plex.diagnostics(find_optimization_targets,OptimizationArea,OptimizationTarget,OptimizationTargetReport) for direct use by tooling and downstream workflows.Focused coverage for new behavior
tests/test_diagnostics_optimization_targets.pyto validate:📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.