{"adoption": {"forks": 648, "observed_at": "2026-08-28T04:07:23.633608+00:00", "stars": 2809}, "canonical_url": "https://ross.abutalabs.com/products/keras-attention", "card": {"archived": false, "artifact_type": "library", "description": "Keras Attention Layer (Luong and Bahdanau scores).", "domain": ["machine-learning", "deep-learning"], "enriched": true, "function": ["machine-learning", "deep-learning"], "health_score": 63, "homepage": null, "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["philipperemy/keras-attention"], "name": "philipperemy/keras-attention", "platform": ["python"], "pushed_at": "2026-03-12T05:12:09+00:00", "repo": "philipperemy/keras-attention", "stars": 2809, "tags": ["keras", "attention-mechanism", "tensorflow", "luong-attention", "bahdanau-attention", "neural-networks", "natural-language-processing"], "topics": ["keras", "keras-neural-networks", "attention-mechanism", "attention-model", "deep-learning"], "urls": [], "use_cases": ["add attention to a keras LSTM model", "implement luong attention in tensorflow", "implement bahdanau attention in keras", "visualize attention weights of a sequence model", "improve sequence classification accuracy with attention"], "what_it_is": "A Keras layer implementing attention mechanisms with Luong (multiplicative) and Bahdanau (additive) score functions for TensorFlow 2.x. It plugs into sequential models like LSTMs to compute attention-weighted context vectors.", "when_to_avoid": ["you use PyTorch or JAX instead of TensorFlow/Keras", "you need transformer-style self-attention (use built-in MultiHeadAttention)", "you need the latest Keras 3 multi-backend support"], "when_to_choose": ["you use TensorFlow 2.x / Keras and want a drop-in attention layer", "you need classic Luong or Bahdanau attention scores", "you want to inspect attention weights for interpretability"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/keras-attention", "repo": "philipperemy/keras-attention", "role": "main", "score": 55}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:23.633608+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T08:14:25.602595+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "129f5e456eee2676856f968a4e0a4a56ffec2c99339b6d757d764bfdf091ca12", "fetched_at": "2026-08-28T04:07:23.633608+00:00", "kind": "readme", "missing": false, "url": "https://github.com/philipperemy/keras-attention"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 71, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3389, "days_push": 174, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 55, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}