อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี
ปุ่มปรับค่าที่สำคัญที่สุดเพียงปุ่มเดียว
อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี เป็นบทเรียน Deep Learning Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Deep Learning Academy และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Deep Learning Academy มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
The Size of Your Step
The gradient tells you which way to go, but how far? The learning rate is the multiplier that sets how big each downhill step is.
w = w - lr * gradA Single Powerful Knob
The learning rate is often the single most important setting in training. Get it wrong and even a perfect model will fail to learn.
lr = 0.01Too Small: Crawling
A tiny learning rate takes tip-toe steps. Loss drops, but so slowly that training drags on for ages or stalls before reaching the valley. 🐢
Too Big: Overshooting
A huge learning rate leaps so far it jumps past the valley and lands higher up the other side. Loss bounces around or shoots off to infinity.
The Divergence Warning Sign
If loss climbs or turns into NaN after a few steps, your learning rate is almost always too big. That is the clearest signal to turn it down.
Just Right: Smooth Descent
A good learning rate makes loss fall steadily and quickly without wild swings. The curve glides down and levels off near the bottom.
Sensible Starting Values
People rarely guess blindly. A common starting learning rate is around 0.001 to 0.01, then you adjust based on how the loss curve behaves.
lr = 1e-3Watch the Loss Curve
Plotting loss over time is your best guide. A diverging curve says go smaller; a flat, barely-moving curve says you can go a bit larger.
It Interacts with Batch Size
The right learning rate depends on other choices like batch size and optimizer. Change one and you may need to retune the rate.
Schedules Change It Over Time
You can even shrink the learning rate as training goes on: take big strides early, then small careful steps near the bottom for a clean finish.
Tuning Is Normal
There is no universal best value, so trying a few learning rates and comparing curves is a normal, expected part of training a model.
Quick Check
What happens with too large a learning rate?
Recap
The learning rate sets step size: too small crawls, too big overshoots and diverges, and just right glides smoothly down. Watch the loss curve and tune it. 🎯
คำถามที่พบบ่อย
บทเรียน “อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Deep Learning Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Deep Learning Academy มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี”
ปุ่มปรับค่าที่สำคัญที่สุดเพียงปุ่มเดียว คุณปฏิบัติ Deep Learning Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Deep Learning Academy หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน Deep Learning Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน
บทเรียน “อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน Deep Learning Academy นี้ได้ไหม
ได้ บทเรียน Deep Learning Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- มองค่าความสูญเสียเป็นภูมิประเทศที่ต้องไต่ลง
- เกรเดียนต์ชี้ขึ้นเนิน — จึงก้าวไปอีกทาง
- อัตราการเรียนรู้: ใหญ่เกินไป เล็กเกินไป หรือพอดี
- ลดค่าฟังก์ชันด้วยมือใน Python