Skip to content
Skills Library
Science & research · Learning & explanation

machine-learning-mathematics

/machine-learning-mathematics

Explain the mathematics behind machine learning and AI: linear models, gradient descent, backpropagation, neural networks, probabilistic models, kernels, PCA, SVD, optimization landscapes, generalization, attention and transformers, information theory in ML. Use for ML theory and derivations.

Licence
MIT
Last repository change
16.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 16.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Explain the mathematics behind machine learning and AI: linear models, gradient descent, backpropagation, neural networks, probabilistic models, kernels, PCA, SVD, optimization landscapes, generalization, attention and transformers, information theory in ML. Use for ML theory and derivations.

Original author description

Explain the mathematics behind machine learning and AI: linear models, gradient descent, backpropagation, neural networks, probabilistic models, kernels, PCA, SVD, optimization landscapes, generalization, attention and transformers, information theory in ML. Use for ML theory and derivations.

How it works

  1. Supervised learning
  2. Neural networks
  3. Unsupervised & probabilistic
  4. Practical math checks
Original SKILL.md headings · 22 lines, 217 words
SKILL.md preview
---
name: machine-learning-mathematics
description: "Explain the mathematics behind machine learning and AI: linear models, gradient descent, backpropagation, neural networks, probabilistic models, kernels, PCA, SVD, optimization landscapes, generalization, attention and transformers, information theory in ML. Use for ML theory and derivations."
---

# Mathematics of Machine Learning

## Supervised learning
- Empirical risk minimization; loss functions (MSE, cross-entropy, hinge); regularization (L2 = Gaussian prior, L1 = Laplace prior / sparsity).
- Linear regression normal equations; logistic regression gradient X^T(sigma(Xw) - y); softmax cross-entropy gradient p - y.
- Bias-variance decomposition; VC dimension; PAC learning; Rademacher complexity; generalization bounds; double descent and overparameterization.
- SVM and kernels: Mercer kernels, RBF, representer theorem; Gaussian processes.

## Neural networks
- Forward pass, backpropagation = reverse-mode automatic differentiation via the chain rule; Jacobian-vector products; vanishing/exploding gradients; initialization (Xavier, He); batch/layer norm; residual connections; universal approximation theorem.
- Optimizers: SGD, momentum, Adam; learning-rate schedules; loss landscape, saddle points, flat minima.
- CNN: convolution as shared-weight linear operator; equivariance. RNN/LSTM. Transformers: attention softmax(QK^T/sqrt(d))V, positional encodings, scaling laws, complexity O(n^2 d).
- Generative models: VAE (ELBO = E log p(x|z) - KL(q||p)), GAN (minimax), diffusion (score matching, SDE), autoregressive LMs (maximum likelihood on next-token).
- Reinforcement learning: MDP, Bellman equation, policy gradient theorem, Q-learning, PPO, RLHF.

## Unsupervised & probabilistic
PCA (eigenvectors of covariance, SVD), k-means (EM special case), EM algorithm, Gaussian mixtures, HMMs, graphical models, variational inference, MCMC, t-SNE/UMAP, contrastive learning, mutual information bounds.

## Practical math checks
Gradient checking with finite differences; dimensional analysis of tensor shapes; numerical stability (log-sum-exp); calibration; data leakage; reproducibility.
Files in this package (2)
  • SKILL.md 2 KB
  • metadata.json 1 KB

Versions

The database has no other skills named machine-learning-mathematics.

Database snapshot: 13.11.2026 · package version 8a54a4a411e9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100ml-python-stats-linearalgebra
    Data-science engineering skill (ML, Python, Statistics, Linear Algebra). Use for ML pipelines, Python data code, statistical testing and linear algebra operations. Triggers: machine learning, ML, model, scikit-learn, pandas, numpy, statistics, hypothesis test, regression, PCA,…
  • 95recursive-feature-machines
    Use this skill when working with Recursive Feature Machines (RFM) for kernel-based machine learning, feature learning, or when implementing backpropagation-free models that learn features similarly to neural networks.
  • 100machine-learning-engineer
    Use this agent when you need to deploy, optimize, or serve machine learning models at scale in production environments.
  • 100machine-learning-engineer
    Use this agent when you need to deploy, optimize, or serve machine learning models at scale in production environments.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.