0Pricing
Deep Learning Academy · Lección

La regla de la cadena, capa por capa

Componga derivadas a través de la red

La regla de la cadena, capa por capa es una lección gratuita de Deep Learning Academy en CoddyKit. Esta es la lección 1 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Deep Learning Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Deep Learning Academy incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

A Net Is Nested Functions

A neural network is just functions wrapped inside functions: each layer feeds its output into the next. Backprop needs the derivative of that whole stack.

The Chain Rule in One Line

The chain rule says the derivative of nested functions multiplies the derivatives of each piece. That single fact is the engine behind all of backprop. ⛓️

dy/dx = dy/du * du/dx

A Tiny Composition

Say z depends on y, and y depends on x. To get how z changes with x, you multiply dz/dy by dy/dx. Each link passes its slope along.

Layers Are Links in a Chain

Every layer is one link. The loss sits at the far end, the input at the near end, and gradients flow back link by link as a chain of multiplications.

Start From the Loss

Backprop begins at the loss and asks: how does loss change if this layer output nudges a bit? That answer is the first derivative in the chain.

Pass the Gradient Backward

Each layer receives the gradient from the layer above, multiplies by its own local derivative, and hands the result to the layer below.

grad_below = grad_above * local_derivative

Local Derivative of a Layer

A layer only needs to know its own local derivative: how its output changes with its input and weights. It never needs the whole network at once.

Weights Get Their Own Gradient

At each layer the incoming gradient also tells you how the loss changes with that layer's weights. That is exactly what the optimizer will use to update them.

Why Order Matters

You multiply derivatives in reverse order, from loss back to input. Going forward computes values; going backward computes how to improve them.

It Scales to Any Depth

Add ten more layers and nothing changes: you just multiply ten more local derivatives into the chain. Depth is no problem for the chain rule.

The Whole Idea, Compressed

Backprop is the chain rule applied layer by layer, from the loss back to the inputs, multiplying local slopes to find each weight's gradient.

Quick Check

Let's check the core rule.

Recap

A network is nested functions, so its derivative is a chain of multiplied local slopes. Backprop walks that chain from loss back to input. ⛓️

Preguntas frecuentes

¿La lección «La regla de la cadena, capa por capa» es gratis?

Sí — el texto completo de «La regla de la cadena, capa por capa» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Deep Learning Academy, actualiza a CoddyKit PRO. El curso de Deep Learning Academy incluye 4 lecciones en total.

¿Qué aprenderé en «La regla de la cadena, capa por capa»?

Componga derivadas a través de la red Practicas Deep Learning Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar Deep Learning Academy?

No se requiere experiencia previa. Deep Learning Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 1 de 4.

¿Cuánto tiempo toma la lección «La regla de la cadena, capa por capa»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de Deep Learning Academy?

Sí. Cada lección de Deep Learning Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. La regla de la cadena, capa por capa
  2. La pasada hacia delante guarda datos que reutiliza la retropropagación
  3. Haga la retropropagación de una red diminuta a mano
  4. Gradientes desvanecidos y explosivos
← Volver a Deep Learning Academy