0Pricing
Deep Learning Academy · Aula

A Regra da Cadeia, Camada por Camada

Componha derivadas pela rede

A Regra da Cadeia, Camada por Camada é uma aula grátis de Deep Learning Academy no CoddyKit. Esta é a aula 1 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Deep Learning Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Deep Learning Academy inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em 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. ⛓️

Perguntas Frequentes

A aula “A Regra da Cadeia, Camada por Camada” é grátis?

Sim — o texto completo de “A Regra da Cadeia, Camada por Camada” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Deep Learning Academy, atualize para CoddyKit PRO. O curso de Deep Learning Academy inclui 4 aulas no total.

O que vou aprender em “A Regra da Cadeia, Camada por Camada”?

Componha derivadas pela rede Você pratica Deep Learning Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar Deep Learning Academy?

Nenhuma experiência prévia é necessária. Deep Learning Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 1 de 4.

Quanto tempo leva a aula “A Regra da Cadeia, Camada por Camada”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de Deep Learning Academy?

Sim. Cada aula de Deep Learning Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. A Regra da Cadeia, Camada por Camada
  2. A Passagem Direta Armazena, a Retropropagação Reutiliza
  3. Faça a Retropropagação de uma Rede Pequena à Mão
  4. Gradientes que Desaparecem e Explodem
← Voltar para Deep Learning Academy