← スキル一覧に戻る

using-jax
by yallup
⭐ 1🍴 0📅 2026年1月6日
SKILL.md
name: using-jax description: Applies JAX patterns for scientific Python development. Use when working with JAX, distrax, numpyro, blackjax, or scientific computing. Covers vmap, JIT, RNG handling. version: 2.0.0
JAX Scientific Computing
Core Rules
- Pure functions - No side effects
- JIT outer functions -
@jax.jiton hot paths - vmap not loops -
jax.vmap(fn)instead of list comprehensions - Split RNG keys - Never reuse keys
Patterns
# RNG: always split
key, k1, k2 = jax.random.split(key, 3)
# Batching: vmap not loops
batched = jax.vmap(fn)(inputs)
# Loops: use scan
_, results = jax.lax.scan(step_fn, init, xs)
Gotchas
- Arrays are immutable
- No Python control flow in JIT - use
jax.lax.cond,jax.lax.scan - Check NaNs:
jnp.isnan(x).any()
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です