shap

v0.54.1 safe
2.8
Low Risk

A unified approach to explain the output of any machine learning model.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 1 test file(s) found

  • Test runner config found: pyproject.toml
  • Test runner config found: pyproject.toml
  • 1 test file(s) detected (e.g. test_gpu_tree.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://shap.readthedocs.io/en/latest/index.html
  • Detailed PyPI description (21911 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 174 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

✓ Outbound Network Calls

No suspicious network call patterns found

⚠ Code Obfuscation score 8.0

Found 4 obfuscation pattern(s)

  • del model = model.eval() self.layer = layer self.add_target
  • ut self.model = model.eval() self.multi_output = False self.num_output
  • del model = model.eval() self.add_handles(layer) self.layer
  • ta self.model = model.eval() multi_output = False outputs = self.model
⚠ Shell / Subprocess Execution score 6.0

Found 3 shell execution pattern(s)

  • ":") try: subprocess.run(["ssh", hostname, "pkill -f shap.benchmark.run_experiment"],
  • _id}.output' try: subprocess.check_output(["ssh", remote, cmd]) except subprocess.CalledProcessErr
  • # copy the results back subprocess.check_output(["scp", remote + ":" + cache_file, cache_file]) if os.p
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

⚠ Registered Email Domain score 3.0

Suspicious email domain flags: Very short email domain: cs.washington.edu>

  • Very short email domain: cs.washington.edu>
⚠ Suspicious Page Links score 4.0

Found 2 suspicious link(s) on the package page

  • Non-HTTPS external link: http://blog.datadive.net/interpreting-random-forests/
  • Non-HTTPS external link: http://papers.nips.cc/paper/7062-a-unified-approach-to-interpreting-model-predic
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with shap
Build a simple Python application using the shap package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!