machine-learning
Machine learning development with JAX, functional programming patterns, and high-performance computing.
Security Assessment
About machine-learning
Machine Learning is a concise concept and best-practices guide for developing machine learning code with JAX using functional programming patterns and high-performance computing techniques. It solves the problem of applying JAX idiomatically: it frames the assistant as an expert in JAX and functional programming and lays out the principles that keep JAX code fast and correct, such as immutability, pure functions, and structuring code for JIT compilation.
The single-file skill covers JAX fundamentals including jax.numpy array operations, automatic differentiation with jax.grad, JIT compilation with jax.jit, and vectorization with jax.vmap. It gives control-flow guidance (jax.lax.scan, cond, and fori_loop instead of Python control flow inside jitted functions), the functional random-number API with proper key splitting, and performance and memory-management advice like choosing appropriate dtypes, batching, checkpointing, and profiling. It also outlines common patterns (pytrees, custom vjp/jvp, multi-device sharding) and model-development practices using Flax or Haiku with functional training loops.
This is a thin, guidance-only reference rather than an executable tool or library, so it is best understood as a curated set of conventions. It targets machine learning engineers and researchers adopting JAX who want a compact checklist of idiomatic patterns and pitfalls. Use cases include establishing coding conventions for a JAX project, onboarding to functional ML patterns, and reminders on correct random-key handling and JIT-friendly control flow.
FAQ
Is this a library or a guide?
It is a guidance-only skill: a single SKILL.md that lays out principles, fundamentals, and best practices for JAX development, not an installable package or runnable tool.
Which frameworks does it reference?
JAX at its core, with jax.numpy, jax.grad, jax.jit, and jax.vmap, plus Flax or Haiku for neural network layers.
What are its main themes?
Functional programming and immutability, JIT-friendly control flow using jax.lax primitives, correct functional random-number handling with key splitting, and performance and memory management.
Who is it for?
Machine learning engineers and researchers working with JAX who want a compact reference of idiomatic patterns and common pitfalls.
Does it include code examples?
It is primarily a high-level checklist of practices and API pointers rather than a collection of complete code samples.
Install machine-learning
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
mindrally/skills