اكتشاف الشذوذ بخطأ إعادة البناء
علّم القيم الشاذة التي يعجز النموذج عن إعادة بنائها
اكتشاف الشذوذ بخطأ إعادة البناء درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Spotting the Odd One Out
Autoencoders are great at finding anomalies: data points that do not fit the normal pattern. The idea is clever and surprisingly simple.
Train on Normal Only
You train the autoencoder on normal data alone. It becomes an expert at rebuilding the kinds of inputs it has seen many times.
Reconstruction Error Is the Signal
For each input you measure the reconstruction error: how far the rebuild is from the original. This single number drives the whole method.
error = ((x - model(x)) ** 2).mean()Normal Rebuilds Cleanly
Familiar, normal inputs rebuild with low error. The model has learned their structure, so the output closely matches the input.
Anomalies Rebuild Badly
An anomaly looks nothing like training data, so the model rebuilds it poorly. That produces a high reconstruction error. 🚩
Pick a Threshold
You set a threshold on the error. Anything above it is flagged as an anomaly; anything below counts as normal.
is_anomaly = error > thresholdChoosing the Threshold
A common trick is to look at errors on a clean validation set and pick a high percentile, like the 95th, as your cutoff.
threshold = np.percentile(val_errors, 95)No Anomaly Labels Needed
You never need labeled anomalies to train. That makes this approach perfect when bad examples are rare or unknown in advance.
Where It Shines
This powers fraud detection, factory defect spotting, and network intrusion alerts, anywhere normal is common and problems are rare.
Watch the Tradeoff
A low threshold catches more anomalies but raises false alarms. A high one stays quiet but may miss real problems. Tune for your cost.
Watch for Drift
If normal behavior changes over time, old errors mislead you. Retrain or recalibrate to handle this drift and keep alerts accurate.
Quick Check
How does an autoencoder flag an anomaly?
Recap
Train on normal data, measure each input's reconstruction error, and flag anything above your threshold. No anomaly labels required. 🎉
تعلم Python مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 30
- الدروس
- 120
الأسئلة الشائعة
هل درس «اكتشاف الشذوذ بخطأ إعادة البناء» مجاني؟
نعم — نص درس «اكتشاف الشذوذ بخطأ إعادة البناء» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Deep Learning Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
ماذا ستتعلم في «اكتشاف الشذوذ بخطأ إعادة البناء»؟
علّم القيم الشاذة التي يعجز النموذج عن إعادة بنائها تتمرن على Deep Learning Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Deep Learning Academy؟
لا تُشترط خبرة سابقة. Deep Learning Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «اكتشاف الشذوذ بخطأ إعادة البناء»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟
نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- Encoder وBottleneck وDecoder
- Autoencoders لإزالة التشويش
- Variational Autoencoders والفضاء الكامن
- اكتشاف الشذوذ بخطأ إعادة البناء