Skip to main content

GUIDE Framework – Ethical AI Governance, Explainability (XAI), Transparency & Responsible AI Auditing.

Project description

GUIDE Framework – Ethical AI, Governance & Explainability (XAI)

guide-framework is a modern Ethical AI toolkit that helps organizations audit, explain, and govern AI systems using the G.U.I.D.E. principles:

🌟 GUIDE AI ETHICS FRAMEWORK

G – Governance
U – Universal Design
I – Identification
D – Dignity
E – Equity

This framework ensures:

  • Fairness
  • Transparency
  • Explainability
  • Accessibility (508/WCAG)
  • Responsible AI decision-making
  • Ethical auditing and governance

It includes both authoritative Ethical AI auditing and XAI-based explainability tools.


🚀 INSTALLATION

pip install guide-framework

Requires Python 3.8+.

If your audit requires data utilities:

pip install pandas scikit-learn numpy

🧠 QUICK START EXAMPLES

✅ 1. Ethical AI Audit

from guide_framework import EthicalAIAudit

audit = EthicalAIAudit("LoanModel")

audit.transparency_check({
    "model_name": "LoanModel",
    "version": "1.0",
    "training_data": "internal",
    "documentation": True
})

audit.fairness_check("Evaluate this loan application.")
audit.safety_check("This system may present danger.")
audit.accessibility_check("This explanation is readable and clear.")

report = audit.finalize_report()
print(report)

Output example:

{
  "model": "LoanModel",
  "results": {
    "transparency": {"status": "pass"},
    "fairness": {"status": "pass"},
    "safety": {"status": "fail"},
    "accessibility": {"status": "pass"}
  },
  "score": "3/4",
  "approved": true
}

✅ 2. Explainability (XAI)

from guide_framework import ExplainabilityGuide

xai = ExplainabilityGuide(api_key="YOUR_OPENAI_KEY")

explanation = xai.explain_decision(
    "The system rejected the loan.",
    context="Applicant missing income documentation"
)

print(explanation)

✅ 3. Transparency Summary

metadata = {
    "model_name": "LoanModel",
    "purpose": "Predict risk",
    "training_data": "public datasets",
    "version": "1.0.0",
    "risks": "May underperform for seniors"
}

print(xai.transparency_summary(metadata))

🔍 MODULE OVERVIEW

guide_framework/
  ├─ auditor.py           # Ethical audit (transparency, safety, fairness, 508)
  ├─ xai_meaning.py       # XAI explainability & transparency
  ├─ governance.py        # G – Governance
  ├─ understanding.py     # U – Understanding
  ├─ integrity.py         # I – Identification / Integrity
  ├─ disclosure.py        # D – Disclosure
  ├─ equity.py            # E – Equity
  ├─ situation_templates.py
  ├─ knowledge_base.py
  ├─ guide_simple.py
  ├─ guide.py
  └─ other support files…

📋 GUIDE ETHICAL CHECKLIST

G – Governance

☑ Oversight structure
☑ Documentation
☑ Model lifecycle control

U – Universal Design

☑ Inclusive testing
☑ Diverse groups validated

I – Identification

☑ Clearly identify all AI interactions

D – Dignity

☑ No harm / disrespect
☑ Safe and humane AI outputs

E – Equity

☑ Fairness across demographic groups
☑ Bias detection


🧩 FAIRNESS RECOMMENDATIONS (Auto-generated examples)

  1. Remove direct sensitive attributes
  2. Re-check group-level disparities every quarter
  3. Add human review for borderline cases
  4. Provide model explanations to affected users
  5. Validate performance across age, gender, culture
  6. Establish ethical escalation procedures

🔐 API KEYS & SECURITY

Your OpenAI key is NOT stored in the package.

Provide it safely like this:

xai = ExplainabilityGuide(api_key="sk-xxxx")

OR set:

export OPENAI_API_KEY="sk-xxxx"

The library will automatically load it.


⚠ TROUBLESHOOTING

pip install --upgrade guide-framework

If build fails:

Remove-Item -Recurse -Force dist, build, *.egg-info
python setup.py sdist bdist_wheel

📜 LICENSE

MIT License


👤 AUTHOR

Kamal Master
Email: ktabine@gmail.com


✔ GUIDE AUDIT COMPLETE

Build AI that earns trust through ethical excellence.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guide_framework-1.0.8.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guide_framework-1.0.8-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file guide_framework-1.0.8.tar.gz.

File metadata

  • Download URL: guide_framework-1.0.8.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for guide_framework-1.0.8.tar.gz
Algorithm Hash digest
SHA256 30cfcb6f83ce1f60e5092e72de6bca6271602df5a9f4a7f647d73cfe4b326d50
MD5 7283662992e8291204d23b969e302b8d
BLAKE2b-256 fe6c8b227f40906c0a64cca4a7d89f22e94c63469648d183303f68246f81abda

See more details on using hashes here.

File details

Details for the file guide_framework-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for guide_framework-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f21e91e52830f71121849c6ef371ab9c7b39d35292fbdf722e7a66e9ddc19766
MD5 bfaff81e7210e88acf8df25867d976d2
BLAKE2b-256 799efeb7338217a705842165d74a260c28d5dbbd32065a0fa48607ea9f1d39c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page