Command Palette

Search for a command to run...

Назад к скиллам
скилл № 96910

ml-math-foundations

Use when the user asks to derive or debug ML math: linear algebra (SVD, eigenvalues), gradients and backprop, probability, MLE, KL divergence and…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить ml-math-foundations в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ML/DL Mathematical Foundations

Purpose

Provide rigorous, implementation-focused reference for all mathematical concepts underpinning machine learning and deep learning. Each reference file bridges theory ↔ practice with derivations, NumPy/SciPy code, and direct mapping to ML algorithms.

Agent Protocol

Trigger

User request includes: prove, derive, gradient, backprop, SVD, eigenvalue, eigendecomposition, chain rule, loss function derivative, optimization convergence, KL divergence, entropy, information theory, kernel trick, PCA math, Bayesian inference, EM algorithm, Taylor expansion, attention math, normalization math, initialization math.

Input Context

  • Specific math concept or derivation needed
  • Algorithm context (e.g., "derivation of Adam", "XGBoost objective", "transformer attention math")
  • Current understanding level (conceptual, formula-level, implementation-level)

Output

  • Clear mathematical derivation with step-by-step reasoning
  • Mapping to ML/DL algorithm application
  • NumPy/SciPy demonstration code
  • Common pitfalls and numerical stability considerations

Response Format

Provide the mathematical content directly. Use standard mathematical notation. No preamble. No postamble. No filler.

Completion Criteria

  • Derivation is complete and self-contained
  • Mapping to ML algorithm is explicit
  • Numerical considerations are documented
  • Code demonstration is provided where applicable

Decision Guide: Which Math Concept to Use

What math do you need?
  ├── Linear Algebra
  │   ├── Vectors, matrices, operations → linear-algebra.md
  │   ├── SVD, eigendecomposition → linear-algebra.md (PCA, matrix factorization)
  │   ├── Norms, distances → linear-algebra.md (regularization, KNN, clustering)
  │   └── Linear transformations → linear-algebra.md (neural network layers)
  ├── Calculus
  │   ├── Derivatives, gradients → calculus.md (gradient descent basics)
  │   ├── Chain rule, backpropagation → calculus.md (neural network training)
  │   ├── Partial derivatives, Jacobians → calculus.md (multi-variable optimization)
  │   └── Taylor series, Hessians → calculus.md (second-order optimization)
  ├── Probability & Statistics
  │   ├── Distributions, MLE, MAP → probability-statistics.md (loss functions, priors)
  │   ├── Bayes theorem, Bayesian inference → probability-statistics.md (Bayesian ML)
  │   ├── Bias-variance tradeoff → probability-statistics.md (model selection)
  │   └── Hypothesis testing, confidence intervals → probability-statistics.md (A/B testing)
  ├── Information Theory
  │   ├── Entropy, cross-entropy → information-theory.md (classification losses)
  │   ├── KL divergence → information-theory.md (VAEs, distillation)
  │   ├── Mutual information → information-theory.md (feature selection)
  │   └── Fisher information → information-theory.md (natural gradient)
  ├── Optimization
  │   ├── Gradient descent, SGD → optimization.md (training algorithms)
  │   ├── Adam, RMSprop, momentum → optimization.md (deep learning optimizers)
  │   ├── Learning rate schedules → optimization.md (training convergence)
  │   ├── Regularization (L1, L2, elastic net) → optimization.md (preventing overfitting)
  │   └── Constrained optimization, Lagrange multipliers → optimization.md (SVMs, duals)
  ├── Loss Functions
  │   ├── MSE, MAE, Huber → loss-functions.md (regression)
  │   ├── Cross-entropy, focal loss → loss-functions.md (classification)
  │   ├── Contrastive, triplet loss → loss-functions.md (embeddings, Siamese networks)
  │   └── Custom loss design → loss-functions.md (domain-specific objectives)
  ├── Deep Learning Math
  │   ├── Backprop through CNN → deep-learning-math.md (convolution gradients)
  │   ├── Attention mechanism math → deep-learning-math.md (transformer)
  │   ├── Normalization (Batch, Layer, Group) → deep-learning-math.md (training stability)
  │   └── Initialization strategies → deep-learning-math.md (Xavier, Kaiming, orthogonal)
  └── ML Algorithm Math
      ├── SVM, kernel trick → ml-algorithms.md (dual formulation, RBF kernel)
      ├── Decision trees, XGBoost → ml-algorithms.md (gain, Newton boosting)
      ├── PCA, SVD → ml-algorithms.md (dimensionality reduction)
      ├── EM algorithm → ml-algorithms.md (GMM, missing data)
      ├── Matrix factorization → ml-algorithms.md (recommender systems)
      └── Gaussian processes → ml-algorithms.md (Bayesian optimization)

Rules

  • Every formula must include its mapping to an ML algorithm or concept.
  • Provide NumPy/SciPy demonstration code for non-trivial computations.
  • Always note numerical stability concerns (e.g., log-sum-exp trick, softmax overflow, catastrophic cancellation).
  • Distinguish between scalar, vector, matrix, and tensor operations with explicit notation.
  • For optimization algorithms, show the update rule with all hyperparameters.
  • Cross-reference related concepts across files (e.g., KL divergence in information-theory ↔ loss-functions).
  • Derive from first principles whe
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/calculus.md
  • references/deep-learning-math.md
  • references/information-theory.md
  • references/linear-algebra.md
  • references/loss-functions.md
  • references/math-foundations-advanced.md
  • references/math-foundations-fundamentals.md
  • references/ml-algorithms.md
  • references/notation-reference.md
  • references/optimization.md
  • references/probability-statistics.md

FAQ

Что делает скилл ml-math-foundations?

Use when the user asks to derive or debug ML math: linear algebra (SVD, eigenvalues), gradients and backprop, probability, MLE, KL divergence and cross-entropy, convexity or optimizer math (SGD, Adam). Produces derivations mapped to implementation code. Not for applying library models (use ml-classical-ml) or information theory proper (use information-theory).

Как установить скилл ml-math-foundations?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ml-math-foundations запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ml-math-foundations с