{"id":42664759,"url":"https://github.com/okkymabruri/priorityx","last_synced_at":"2026-01-29T10:03:32.568Z","repository":{"id":322520926,"uuid":"1089295316","full_name":"okkymabruri/priorityx","owner":"okkymabruri","description":"Entity prioritization and escalation detection using GLMM statistical models","archived":false,"fork":false,"pushed_at":"2026-01-27T15:32:39.000Z","size":2280,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T02:14:05.484Z","etag":null,"topics":["data-science","escalation-detection","glmm","prioritization","python","risk-analysis","statistical-modeling"],"latest_commit_sha":null,"homepage":"http://okky.dev/priorityx/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okkymabruri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-04T06:33:53.000Z","updated_at":"2026-01-27T15:32:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/okkymabruri/priorityx","commit_stats":null,"previous_names":["okkymabruri/priorityx"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/okkymabruri/priorityx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okkymabruri%2Fpriorityx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okkymabruri%2Fpriorityx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okkymabruri%2Fpriorityx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okkymabruri%2Fpriorityx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okkymabruri","download_url":"https://codeload.github.com/okkymabruri/priorityx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okkymabruri%2Fpriorityx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","escalation-detection","glmm","prioritization","python","risk-analysis","statistical-modeling"],"created_at":"2026-01-29T10:03:31.888Z","updated_at":"2026-01-29T10:03:32.559Z","avatar_url":"https://github.com/okkymabruri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Priorityx: Entity prioritization and escalation detection using GLMM statistical models\n\n[![PyPI version](https://badge.fury.io/py/priorityx.svg)](https://badge.fury.io/py/priorityx)\n[![Downloads](https://static.pepy.tech/badge/priorityx)](https://pepy.tech/project/priorityx)\n[![Tests](https://github.com/okkymabruri/priorityx/workflows/Tests/badge.svg)](https://github.com/okkymabruri/priorityx/actions)\n[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nEntity prioritization and escalation detection using GLMM statistical models\n\n## Installation\n\n```bash\npip install priorityx\n```\n\n## Quick Start\n\n```python\nimport pandas as pd\nimport priorityx as px\n\ndf = pd.read_csv(\"data.csv\")\n\n# Default: volume x growth (single GLMM)\nresults = px.fit_priority_matrix(\n    df,\n    entity_col=\"service\",\n    timestamp_col=\"date\",\n    temporal_granularity=\"quarterly\",\n)\n# Returns: entity, x_score, y_score, count, quadrant\n\npx.plot_priority_matrix(results, entity_name=\"Service\", save_plot=True)\n```\n\n### Custom Axes\n\n```python\n# Custom Y axis: volume × resolution_days (two GLMMs)\nresults = px.fit_priority_matrix(\n    df,\n    entity_col=\"service\",\n    timestamp_col=\"date\",\n    y_metric=\"resolution_days\",\n)\n\n# Custom both axes: disputed_amount × paid_amount\nresults = px.fit_priority_matrix(\n    df,\n    entity_col=\"service\",\n    timestamp_col=\"date\",\n    x_metric=\"disputed_amount\",\n    y_metric=\"paid_amount\",\n)\n```\n\n### Composite Indices\n\n```python\n# Add entity metrics\nmetrics = px.aggregate_entity_metrics(\n    df,\n    entity_col=\"service\",\n    duration_start_col=\"opened_at\",\n    duration_end_col=\"closed_at\",\n    primary_col=\"exposure\",\n    secondary_col=\"recovery\",\n)\nresults = results.merge(metrics, left_on=\"entity\", right_on=\"service\", how=\"left\")\n\n# Add weighted indices: RI (Risk), SQI (Service Quality), EWI (Early Warning)\nresults = px.add_priority_indices(\n    results,\n    volume_col=\"count\",\n    growth_col=\"y_score\",\n    severity_col=\"total_primary\",\n    resolution_col=\"mean_duration\",\n    recovery_col=\"secondary_to_primary_ratio\",\n    # customize weights (default shown)\n    w_volume=0.4, w_growth=0.4, w_severity=0.2,\n    w_resolution=0.5, w_recovery=0.5,\n    w_risk=0.7, w_quality=0.3,\n)\n\n# Top priority entities\ntop_risks = results.nlargest(10, \"EWI\")\n```\n\n## Features\n\n- GLMM-based priority matrix (Q1–Q4) with entity-level intercept/slope insights\n- Priority-based transition timeline (Crisis / Investigate / Monitor / Low) with spike markers (`*X`, `*Y`, `*XY`)\n- Cumulative movement tracking and trajectory visualizations\n- Transition driver analysis that surfaces top subcategories causing quadrant shifts with spike summaries\n- Deterministic seeding option for reproducible GLMM runs (set `PRIORITYX_GLMM_SEED`)\n\n## Use Cases\n\nIT incidents, software bugs, compliance violations, performance monitoring.\n\n## Documentation\n\n- [Quick Start](docs/quickstart.md)\n- [API Reference](docs/api-reference.md)\n- [Methodology](docs/methodology.md)\n- [Priority Classification](docs/priority_classification.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokkymabruri%2Fpriorityx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokkymabruri%2Fpriorityx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokkymabruri%2Fpriorityx/lists"}