Foundations

How models learn, how systems run, how decisions are evaluated.

Readable articles
516
Rationale
149
Self-measurement and interpretation
1176

36 Systems chapter stringing methods; 480 A short issue explaining concepts, counting and details of realization.

Synthetic experiment · Vintage

Did risk fall, or did the denominator change?

At the same term and rate, 100 people are randomly assigned to each offer. Fifty draw funds under the lower limit and 60 under the higher one. Use the same synthetic ledger to calculate two measures of loss.

Choose a measure

Loss per unit of principal drawn

Lower limit
2.5%1,250 / 50,000
Higher limit
2.4%1,440 / 60,000

For every 100 currency units drawn, the two groups lose 2.5 and 2.4 respectively. The higher-limit group has a slightly lower loss rate on a larger volume of lending.

Loss per person assigned

Lower limit
12.5 1,250 / 100
Higher limit
14.4 1,440 / 100

For the same 100 assignments, the higher-limit offer incurs 1.9 more currency units of loss per person. Including people who did not draw funds gives the principal loss per person offered the policy.

The observation window is still open

Lower limit
—Awaiting maturity
Higher limit
—Awaiting maturity

If the new cohort is only halfway through the window, report principal drawn and the share with full follow-up. Compare losses once both groups reach the same age. Future losses are still unknown.

Read about cohort age, drawdown and loss

Start reading by module

Where's the model coming from

Linear Algebra and Micrometry

21 articles

Match formulas, shapes and geometry.

  1. Vector and Jacobian: From Similarity to an detectable gradient

    The two-dimensional search vector, non-linear map and limited differentials are used to connect shapes, local linearization and reverse transmission.

    System Chapters2 Graphics6 self-measurementCheck it out
  2. Matrixs and parameters are identifiable: like projections, why are the coefficients different

    A separate column will be used to determine the matrix of characteristics, distinguishing between the only projections and the parameters.

    Topical shorts2 self-measured
  3. Zero Space: Which parameter changes do not change the output

    Constructs the entire solution of the non-settling equation, explaining the direction of the redundant parameter with zero space.

    Topical shorts2 self-measured
View All 21

Where's the model coming from

Probability and statistics

21 articles

Starting with uncertainty, distribution and appearance.

  1. Probability, probabilities and probabilities: what does a fraction of a small sample say

    Distinguishing predictive events, estimated parameters and expressions of uncertainty, based on the probability of condition, Bernoulli and Beta updates.

    System Chapters2 Graphics6 self-measurement
  2. Bayes compensation rate update: separating evidence intensity from benchmark rate

    The a priori probability is converted to a rate of loss, and the evidence is apparently updated on a case-by-case basis.

    Topical shorts1 diagram2 self-measured
  3. Independence: Why can you disappear when you know a background

    (c) To judge independence by the distribution of conditions, and to construct examples of marginality-related but independent conditions.

    Topical shorts2 self-measured
View All 21

Where's the model coming from

Mechanical studies

22 articles

Tasks and assessments are defined and model assumptions are compared.

  1. Linear models and regularization: a clear and interpretable baseline first

    From centralization of minimum two times, pathological characteristics to Ridge and Lasso, fixed data are used to check coefficients, residues and evaluation protocols.

    System Chapters2 Graphics6 self-measurement
  2. Trees and Gradients Upgrade: What is a new tree fixing

    Four samples were used to calculate the fractions, residues, learning rates and second-order leaf weights and to understand the capacity of tree models and the sources of error.

    System Chapters2 Graphics6 self-measurement
  3. Gus Park Soo Bayes: Simplified which spectrum structure

    The comparative classification scores from the type of conditions density explain the effect of repeated characteristics on the level of self-confidence after testing.

    Topical shorts2 self-measured
View all 22

Write the training right

No monitoring and representation

24 articles

From data structure to low dimensions, do not take graphics as a conclusion.

  1. representation and Embedding: How to match vector distances

    It ranges from checking tables, points and cosine similarities to comparing targets, negatives and searchable spaces.

    System Chapters2 Graphics6 self-measurement
  2. Embedding Checklist: one-hot by array of dilution

    Category numbers themselves do not have continuous distances.

    Topical shorts2 self-measured
  3. padding_idx: Line zero and active length are two types of agreement

    The padding index of Embedding can set special treatment for filling the position.

    Topical shorts2 self-measured
View All 24

Where's the model coming from

Losses, generalization and assessment

22 articles

It's not like we're going to be able to make a difference about what's best, how to compare, and where we're going to be wrong.

  1. From logit to cross-enultation, what's changed at once

    Starting with a two-class score, the probability, loss and gradient are calculated manually, and then see why extreme input needs to be calculated steadily.

    System Chapters2 Graphics6 self-measurementCheck it out
  2. Sorting, Probability and Calibration: AUC

    Four samples were used to distinguish between sorting capacity, probability errors, volume accuracy and decision-making costs, explaining the boundary between calibration and cluster assessment.

    System Chapters2 Graphics6 self-measurementCheck it out
  3. Strictly appropriate rating: why the probability of honesty is more cost-effective on average

    The expected logarithm loss is broken down into entropy and deviation costs, distinguishing between limited sample luck and overall probability quality.

    Topical shorts2 self-measured
View all 22

Where's the model coming from

Optimization method

21 articles

From step-by-step updates to curves, constraints and stability.

  1. Optimization and number of conditions: why the same rate of learning is stunned and shaken

    The two-dimensional secondary function deduces a steady step, connecting the feature scaling, pre-conditions, momentum and actual training diagnostics.

    System Chapters2 Graphics6 self-measurement
  2. Bumps and Jensen: Why does the mean dot not get worse than the average target

    Test the convex definition with a specific point to distinguish the role of the convex from the convex object.

    Topical shorts2 self-measured
  3. Glossy and strong: what limits the upper and lower curves, respectively

    Calculates a smooth and strong constant using a secondary function, explaining the relationship between the condition number and the fixed step length.

    Topical shorts2 self-measured
View All 21

Where's the model coming from

Nerve network principles

25 articles

See how each layer is calculated and how the gradient goes back.

  1. Inverse transmission: from local lead count to parameter update

    Use a hidden neuron with ReLU to progressively calculate forward values, reverse gradients and update them simultaneously.

    System Chapters2 Graphics6 self-measurementCheck it out
  2. Normalization, initialization and disability: how deep networks transmit signals

    Compare BN with LN with a fixed matrix, and then explain the He initialization and residue path from the variance and the number of guides.

    System Chapters2 Graphics6 self-measurement
  3. Chain rule: multiply along path and add at convergence

    The same hidden expression can be used for both forecasting and auxiliary constraints.

    Topical shorts2 self-measured
View All 25

Write the training right

PyTorch

25 articles

From scalding to auto-divideing to recoverable training code.

  1. Complete a training loop

    Align data, patterns, losses, gradients, parameter updates and statistical calibres to check training codes using a small, measurable PyTorch example.

    System Chapters2 Graphics6 self-measurement
  2. PyTorch: Where the gradient goes, what the model keeps

    Checks the calculation chart, gradient add-up, parameter registration and training status, starting with leaf lengths and shared parameters.

    System Chapters2 Graphics6 self-measurement
  3. Threshold stride: How the multidimensional index finds a dimension of storage

    Thrusts are usually stored in one dimension to accompany shape, stride and starting deviation description of multi-dimensional data.

    Topical shorts1 diagram2 self-measured
View All 25

Write the training right

TensorFlow / Keras

24 articles

Understanding the training engagements for eager, GradientTape and Keras.

  1. TensorFlow and Keras: from GradientTape to checkable training steps

    Reconciling gradient records, variable updates, data flow lines and tracing boundaries with the same linear model.

    System Chapters2 Graphics6 self-measurement
  2. GradientTape: The operation must occur within the records

    The automatic fraction requires a calculation path from the target back to the input.

    Topical shorts2 self-measured
  3. watch: Guidance for input is required first to describe the object to be observed

    Training is usually conducted to guide model training variables and to explain how a user ' s identity affects predictions.

    Topical shorts2 self-measured
View All 24

Write the training right

Training and engineering

25 articles

Let the experiment be correct and re-enact and explain why it failed.

  1. Data severing and leaking: what exactly does the model know in advance

    Establish training validation protocols that can be re-addressed from the time the event is available, label maturity and group independence.

    System Chapters2 Graphics6 self-measurement
  2. Efficient training and revitalising experiments

    From the effective sample denominator, gradient accumulation and mixing accuracy, to the point of inspection where the same experiment can continue.

    System Chapters2 Graphics6 self-measurement
  3. Gradient accumulation: confirmation of the denominator of each reverse

    The gradient accumulates to keep multiple microbial gradients to the same optimist update, often used for shortfalls.

    Topical shorts2 self-measured
View All 25

Write the training right

Computer vision

25 articles

From volume and feature to detection, partition and visual expression.

  1. Volume and Feel Field: What input does an output see

    From the two-dimensional hand count, track the passageway, the steps, the padding and the multilayered feeling field.

    System Chapters2 Graphics6 self-measurement
  2. Detection and partition: From the position of the box to each pixel

    Explains the different targets of IoU, NMS, header, semantic partition and example with fixed frames and masks.

    System Chapters2 Graphics6 self-measurement
  3. Volume and interconnectivity: The core in deep learning does not usually flip

    Many of the depth learning frameworks are called volume calculations and actually slide weights in an interlocking manner, without first reversing the test.

    Topical shorts2 self-measured
View All 25

Write the training right

Natural language processing

23 articles

How does the text indicate, how the sequence is modelled and how the results are evaluated?

  1. NLP Task and text representation: From word frequency to context

    From the TF-IDF case for two short documents, a distinction is made between task labels, verbs, serial expressions and pre-training targets.

    System Chapters2 Graphics6 self-measurement
  2. Text classification: Make sure that a single sentence allows several labels

    Distinguishing between cross-subscription, multiple labels and hierarchical labels, and selecting outputs and losses.

    Topical shorts2 self-measured
  3. Phrase bag: What information is left on the text after the order is dropped

    Use a number vector to establish an interpretable baseline while identifying the boundary between the negative and the word sequence.

    Topical shorts2 self-measured
View all 23

Language model and Agent

LLM Core Ration

43 articles

Read Transformer from token and probabilities.

  1. How the weight of Attention becomes a new expression

    Two sets of two-dimensional teaching vectors are used to calculate matching scores, attention weights and output, and to examine each of them separately. causal mask and padding mask 。

    System Chapters2 Graphics6 self-measurementCheck it out
  2. Release Attention back to Transformer: Disablement, Normalization and Location

    One down the length shape. Decoder block , the manual is coding for the unicoded and rotated position and checking for alignment of the position deviation with the cache.

    System Chapters2 Graphics6 self-measurement
  3. From text to training target: word division, tab move and confusion

    Manually perform a subword merge, draw a self-return to the label position, and calculate negative logarithms and confusion using a fixed probability.

    System Chapters2 Graphics6 self-measurement
View all 43 articles

Language model and Agent

LLM training and reasoning

44 articles

Linking data, training objectives, suitability and reasoning efficiency.

  1. Pre-training takes the data, then the model

    Explains the cleaning, de-weighting, isolation and mixing of composite data counters to verify parameters, token numbers and effective training volume for a fixed-calculation budget.

    System Chapters2 Graphics6 self-measurement
  2. LoRA and QLoRA: What parameters have been trained

    A set of low-level updates is calculated manually, distinguishing weight quantification, computation of accuracy and trainingable parameters, and a checklist is established for the fitper to store and load.

    System Chapters2 Graphics6 self-measurement
  3. Prefer to DPO: What was optimized when comparing two responses

    The logarithmic, loss and gradient of DPO is calculated over time from pair preferences and reference strategies, and the length, labelling and evaluation deviations are checked.

    System Chapters2 Graphics6 self-measurement
View all 44

Language model and Agent

Retrieval enhancement and evaluation

42 articles

Put together answers, sources and testable quality standards.

  1. The evidence chain for RAG: recall, rearrange, answer and quote

    Starting with a slice of a document, a manual search indicator and vector order explain why evidence is lost between recall, cut, generation and reference.

    System Chapters2 Graphics6 self-measurement
  2. One answer is not enough: evaluation, Judge and duplicate operation reliability

    Fix data, generation and scoring conditions; calculate pass@k and pass^k by hand, separating answer quality, process constraints, judge error and running costs.

    System Chapters2 Graphics6 self-measurement
  3. Document block cut: length, overlap and necessary evidentiary boundary

    The search system usually does not make the entire long document a candidate but a small, identifiable block.

    Topical shorts2 self-measured
View all 42

Language model and Agent

Agent System

43 articles

Build a reliable cycle around tools, states, memories and assessments.

  1. Agent is in a state to talk about tools and failures

    Use a draft study card task to open model proposals, tool execution and state migration, restore post-timed twigs, etc., and design to replay event records.

    System Chapters2 Graphics6 self-measurement
  2. Memory, Skill, MCP: how to divide context and control

    The fixed token budget design context distinguishes memory storage, skill pack, protocol connection and Agent control loops and tracks a trust boundary called by a tool.

    System Chapters2 Graphics6 self-measurement
  3. Working, Judge, Loop: Allow strategy workflow to check and recover

    To organize, test, evaluate and audit publicly synthesizing mission evidence, gradually track responsibilities and failed exports from Working, tools, Judge and limited cycles.

    System Chapters2 Graphics6 self-measurementCheck it out
View all 43 articles

From prediction to decision-making

Search, recommendation and graphic learning

22 articles

Link expression, recall and sequencing to feedback data and assessments.

  1. Retrieving, sorting and feedback: why candidates disappear and why clicks are biased

    Synthetic examples of binary scores, candidate overlays and location deviations are used to recall, sort, indicator and log selection mechanisms.

    System Chapters2 Graphics6 self-measurement
  2. Chart learning and message transmission: from neighbor behaviour to recall

    The three nodes are used to calculate the aggregation, update and two jumps, and the snapshots, sampling and recall tasks are checked.

    System Chapters2 Graphics6 self-measurement
  3. Invisible feedback: No clicks, or no opportunity to see

    Distinguishing preferences, exposure opportunities and intensity of behaviour and defining the meaning of training labels.

    Topical shorts2 self-measured
View all 22

From prediction to decision-making

causal inference and response modelling

22 articles

Identification assumptions are written first, effects are estimated and strategies are compared.

  1. Causal recognition and adjustment: determine if the effects of the action can be seen from the data

    Use stratified inversions to derive standardization and weightings to indicate consistency, exchangeability, positive value and the boundary of the adjusted variable.

    System Chapters2 Graphics6 self-measurement
  2. DML and processing response: what exactly was estimated after the mutilation

    Delineating the orthodox to cross-fitting from some linear models, distinguishing DML, doubly robust and multi-action responses with determinative synthetic data.

    System Chapters2 Graphics6 self-measurement
  3. Potential result: a comparison that is not seen at the same time by definition

    The difference in intervention between the same body and the difference between the two groups of observations is distinguished, and the target population and result windows are fixed before the data are viewed.

    Topical shorts2 self-measured
View all 22

From prediction to decision-making

Credit Time Order and LTV

22 articles

Presumptions around observation windows, risks and multi-dimensional offer organization counterfactual.

  1. counterfactual LTV and offer Decision-making: receiving value comparisons of risk projections

    Distinguishing between full long-term values and fixed observation window agents, explaining spending, loss, calibration, response sequencing and constraint optimization using synthetic candidate actions.

    System Chapters2 Graphics6 self-measurementCheck it out
  2. Serial model and credit risk: put the change back in the sample

    Understanding how multi-source history enters a risk model in terms of time available, long range sequences and forwards.

    System Chapters2 Graphics6 self-measurement
  3. Credit label time line: what can be seen in decision-making

    Distinguishing feature cross-sections, display windows and label maturity dates and blocking future information leaks at real decision time.

    Topical shorts2 self-measured
View all 22
Modules and References 19 Modules Continue reading from teaching materials, original papers and official documents.

Where's the model coming from

Linear Algebra and Micrometry Match formulas, shapes and geometry.21 articles

Suggested first: Start here

  • Check matrix and stretch shape
  • Understanding projection, gradient and local changes

Into Module Directory

The text is accompanied by the corresponding source information.

Probability and statistics Starting with uncertainty, distribution and appearance.21 articles

Suggested first: Start here

  • It's written from the hypothesis
  • Interpretation of estimates, tests and uncertainties

Into Module Directory

The text is accompanied by the corresponding source information.

Mechanical studies Tasks and assessments are defined and model assumptions are compared.22 articles
Losses, generalization and assessment It's not like we're going to be able to make a difference about what's best, how to compare, and where we're going to be wrong.22 articles

Suggested first:Probability and statistics Mechanical studies

  • Distinguishing probabilities, sorting and thresholds
  • Understanding loss assumptions and assessment caliber

Into Module Directory

The text is accompanied by the corresponding source information.

Optimization method From step-by-step updates to curves, constraints and stability.21 articles
Nerve network principles See how each layer is calculated and how the gradient goes back.25 articles

Suggested first:Linear Algebra and Micrometry Optimization method Losses, generalization and assessment

  • Reverse transmission from the calculation diagram
  • Examination of initialization, regularization and training behaviour

Into Module Directory

The text is accompanied by the corresponding source information.

Write the training right

No monitoring and representation From data structure to low dimensions, do not take graphics as a conclusion.24 articles

Suggested first:Linear Algebra and Micrometry Probability and statistics

  • Explains the objectives of clustering and decomposition
  • Compare information with re-engineering of reservations

Into Module Directory

The text is accompanied by the corresponding source information.

PyTorch From scalding to auto-divideing to recoverable training code.25 articles
TensorFlow / Keras Understanding the training engagements for eager, GradientTape and Keras.24 articles

Suggested first:Nerve network principles

  • Achieving a micro-training step
  • Distinguishing tracking, saving and service export

Into Module Directory

The text is accompanied by the corresponding source information.

Training and engineering Let the experiment be correct and re-enact and explain why it failed.25 articles

Suggested first:Nerve network principles

  • Create complete training and validation closed loops
  • Recording performance, accuracy and restoring training boundaries

Into Module Directory

The text is accompanied by the corresponding source information.

Computer vision From volume and feature to detection, partition and visual expression.25 articles
Natural language processing How does the text indicate, how the sequence is modelled and how the results are evaluated?23 articles

From prediction to decision-making

Search, recommendation and graphic learning Link expression, recall and sequencing to feedback data and assessments.22 articles
causal inference and response modelling Identification assumptions are written first, effects are estimated and strategies are compared.22 articles
Credit Time Order and LTV Presumptions around observation windows, risks and multi-dimensional offer organization counterfactual.22 articles

Language model and Agent

LLM Core Ration Read Transformer from token and probabilities.43 articles
LLM training and reasoning Linking data, training objectives, suitability and reasoning efficiency.44 articles
Retrieval enhancement and evaluation Put together answers, sources and testable quality standards.42 articles
Agent System Build a reliable cycle around tools, states, memories and assessments.43 articles

Let's try it

Several with large models and causal inference The relevant small examples, parameters and calculation processes are presented.

How does the temperature change the candidate distribution?

The original score of the candidate remains unchanged and only the temperature in softmax is adjusted.

Four candidates to “want to go to the evening ...”

Synthetic score
  1. A walkScore 2.4
    54.0%
  2. RunScore 1.8
    29.7%
  3. Look at the showScore 1.0
    13.3%
  4. Hit the ballScore - 0.5
    3.0%
The probability is to be consolidated by the four candidates together; value is displayed in a decimal number.

When the temperature is 1.0, the probability of “walking” is 54.0 per cent. Lowering temperature allows for a more concentrated distribution, with the candidate ranking unchanged.

The current static result is T = 1.0. Enables JavaScript to adjust parameters.

Description of parameters:Hugging Face · GenerationConfig ↗

How does a word sum up the context?

Selects a query word to calculate the QK score, the weight of attention and the weight of the V.

Current query:Window

Single Head 2D
  1. CatScore 0.156
    24.7%
  2. Sit downScore 0.184
    25.4%
  3. WindowScore 0.856
    49.8%
  4. SunCover it
    0.0%
The self-return mask has been opened: “Sunshine” is still in its current position, with a weight of zero.
weighted V[0.324, 0.575]

Window-side first takes dot products with K for visible words, divides by √2 and applies softmax. These weights aggregate V to produce the two-dimensional result above.

The static example uses "windows" as a query and opens a self-return mask.

Source of methodology:Attention Is All You Need · §3.2 ↗

You're in the lead. Are you in the lead?

Each of the two recommended options has 100 composite samples. Only the people that are distributed to them are changed to observe the completion rate of reading.

Let's look at the sum of the two groups

Reading completion rate
  1. Scheme A75/100 persons
    75.0%
  2. Scheme B45/100 persons
    45.0%
Number of completed / total number allocated to the programme.
Total margin A - B+30.0 pp

We'll split up the two groups

Number of completed/persons
Cross-checks within the population
PopulationScheme AScheme BA − B
Active User72 / 90 80.0%9 / 10 90.0%−10.0 pp
Normal Users3 / 10 30.0%36 / 90 40.0%−10.0 pp

In both group comparisons, the completion rate for programme B was higher than for programme A. The two groups were given different proportions of the population.

Put it back in the same population distribution

50% each
  1. Scheme AActive / Normal Half
    55.0%
  2. Scheme BActive / Normal Half
    65.0%
Both groups reweight with 50% active user + 50% general user.
After unified distribution A - B−10.0 pp

A:80.0% × 50% + 30.0% × 50% = 55.0%
B:90.0% × 50% + 40.0% × 50% = 65.0%

In total, A leads by 30.0 percentage points. Let's see if the two groups have the same people.

Current display of full static boosts. When JavaScript is enabled, the population ratio can be changed or compared over time.

Further reading:Judea Pearl · Understanding Simpson’s Paradox ↗

All the data are teaching settings. Three small examples explain, respectively, probabilities, contextual aggregation and selection deviations.

Go back to the paper library

How do you write this note

System chapters begin with the whole, and a short issue is addressed. It can be read through modules or start with the question at hand; Each chapter has examples, self-measurement and reference materials to facilitate the continuation of learning.

Focused applications include search recommendations, time series risk modeling CAUSE RESULTS AND CURRENCY MODING AND Agent 。 The business case uses synthetic data to facilitate hand-counting and recovery.

Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.