0Pricing
Deep Learning Academy · Pelajaran

Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya

Gunakan kemiringan untuk memperbaiki bobot

Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya adalah pelajaran Deep Learning Academy gratis di CoddyKit. Ini adalah pelajaran 2 dari 4. Kamu bisa membaca pelajaran lengkapnya di bawah secara gratis — lalu praktikkan langsung di browser dengan editor kode bawaan dan tutor AI 24/7. Ini adalah bagian dari jalur belajar Deep Learning Academy, dan progresmu tersinkronisasi di web dan aplikasi CoddyKit. Kursus Deep Learning Academy mencakup 4 pelajaran total.

Bagian dari pelajaran ini belum diterjemahkan dan ditampilkan dalam bahasa Inggris.

Reading the Slope

To walk downhill you first need to know which way is down. The gradient is the tool that tells you the slope of the loss at your current spot.

Gradient Points Uphill

Here is the surprise: the gradient points in the direction where loss increases fastest. It shows you the steepest way up, not down.

So Step the Other Way

Since the gradient aims uphill, you move in the opposite direction to go down. Subtracting the gradient takes you toward lower loss.

w = w - grad

The Update Rule

This one line is the heart of training. You scale the gradient by a small step size, then subtract it from each weight. Repeat and loss drops.

w = w - lr * grad

Gradient Is a Vector

With many weights, the gradient is a whole vector: one slope per weight. Each weight gets nudged by its own piece of that vector.

Magnitude Means Steepness

A large gradient value means the loss is very steep in that direction, so that weight needs a bigger correction. Small values mean you are nearly flat there.

Where Gradient Is Zero

At the very bottom of a valley the slope flattens and the gradient becomes zero. With nothing to subtract, the weights stop moving. You have converged.

One Step at a Time

You almost never reach the bottom in one jump. Each step only improves things a little, so descent is a long series of tiny downhill moves.

Following the Negative Gradient

The path you trace by always heading along the negative gradient is the route of steepest descent. It is the greedy shortcut toward lower loss.

step = -grad

Why Subtraction Works

Subtracting moves you against the increase, so loss must fall for a small enough step. That simple sign flip is what turns a slope into progress.

Toward Automatic Gradients

You will rarely compute these slopes by hand. PyTorch's autograd finds the gradient for you, but the rule stays the same: subtract it to descend.

Quick Check

Which direction does the gradient point?

Recap

The gradient points uphill toward higher loss, so you subtract a scaled version of it to step down. Repeat that update and the model rolls toward the valley. ⬇️

Pertanyaan yang Sering Diajukan

Apakah pelajaran “Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya” gratis?

Ya — teks lengkap “Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya” gratis dibaca di sini di web. Untuk praktiknya secara interaktif (editor kode bawaan dan tutor AI 24/7) dan buka sisa kursus Deep Learning Academy, upgrade ke CoddyKit PRO. Kursus Deep Learning Academy mencakup 4 pelajaran total.

Apa yang akan aku pelajari di “Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya”?

Gunakan kemiringan untuk memperbaiki bobot Kamu berlatih Deep Learning Academy dengan kode praktik yang langsung kamu jalankan di browser, dan tutor AI 24/7 menjawab pertanyaanmu saat kamu mengerjakan pelajaran ini.

Apakah aku perlu pengalaman untuk memulai Deep Learning Academy?

Tidak diperlukan pengalaman sebelumnya. Deep Learning Academy di CoddyKit dirancang untuk pemula hingga pelajar tingkat lanjut, jadi kamu bisa memulai di sini atau dari awal dan belajar sesuai kecepatan kamu sendiri. Ini adalah pelajaran 2 dari 4.

Berapa lama pelajaran “Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya” memakan waktu?

Sebagian besar pelajaran CoddyKit memakan waktu sekitar 5–10 menit. Setiap pelajaran ringkas dan interaktif, jadi kamu membuat kemajuan stabil dan melanjutkan dari tempat kamu tinggalkan di web dan aplikasi.

Bisakah aku menulis dan menjalankan kode dalam pelajaran Deep Learning Academy ini?

Ya. Setiap pelajaran Deep Learning Academy menyertakan editor kode bawaan, jadi kamu menulis dan menjalankan kode nyata langsung di browser dan mendapatkan umpan balik AI instan — tidak diperlukan penyiapan lokal.

Semua pelajaran dalam kursus ini

  1. Loss sebagai Lanskap untuk Dituruni
  2. Gradien Mengarah ke Atas — Jadi Melangkahlah ke Arah Sebaliknya
  3. Laju Pembelajaran: Terlalu Besar, Terlalu Kecil, Pas
  4. Minimalkan Fungsi Secara Manual dalam Python
← Kembali ke Deep Learning Academy