تعلّم الآلة 101

المعامل والعروض التفاعلية

صفحات تفاعلية لهذا المقرر. كل رقم فيها يُحسَب في متصفّحك — فليست رسوماً مسجّلة، ولا تتّصل بأي خادم.

12 تجارب عملية · 12 عروض تفاعلية

صفحات العروض بالإنجليزية في الوقت الحالي؛ أما الدرس المرتبط بكل عرض فهو بالعربية بالكامل.

كيف تقرأ هذه الصفحات. كل صفحة تبيّن أي أرقامها محسوبة، وأيها مأخوذ من شكل منشور، وأيها توضيحي. وقد أُنتج بعضها بمساعدة الذكاء الاصطناعي وتذكر ذلك على الصفحة نفسها. هي أدوات تعليمية، وليست قياسات لعتاد حقيقي.

التجارب العملية

تجربة عملية: مُصوِّر SVM

جِد أوسع ممرّ، ثم اثنِه

M4تجربة عملية4 خطوات
ما ستفعله
  1. هامش مجموعة النقطتين
  2. خفِّف C: يتّسع الهامش
  3. نقطةٌ داخلية عميقة ليست متجهًا داعمًا
  4. حيلة النواة: RBF تلفّ حلقة

تجربة عملية: مستكشف التجميع

قيِّم تجميعًا، ثم دَع الكثافة تجد مجموعاتها بنفسها

M5تجربة عملية5 خطوات
ما ستفعله
  1. inertia لعنقودَين متباعدَين
  2. درجة silhouette لها
  3. الكوع: inertia لا تفعل إلا أن تهبط مع ارتفاع k
  4. DBSCAN: النقطة المعزولة ضوضاء
  5. حدّ minPts بالضبط

تجربة عملية: التنبؤ بالتسلسل

عُدَّ الحروف، ثم تنبّأ بالحرف التالي

M8تجربة عملية6 خطوات
ما ستفعله
  1. أرضية add-k لحرفٍ غير مرئي
  2. …والشقيق المرئي
  3. سياقٌ غير مرئي يرتدُّ إلى 1/V
  4. perplexity لتسلسلٍ متوقَّعٍ تمامًا
  5. نموذجٌ أُحادي منتظم يسجّل V
  6. الرتبة الأعلى تخفض perplexity التدريب

مشروع: مشروع تعلُّم آلة متكامل

مهمّةٌ واحدة، نماذج عدّة، ودرجةٌ صادقة واحدة

M10تجربة عملية4 خطوات
ما ستفعله
  1. النموذج أ: شجرة قرارٍ جشِعة
  2. النموذج ب: SVM خطّية على حلقة
  3. النموذج ب مُنَوّى: RBF يفوز بالحلقة
  4. قيِّم: الدقة لا تكفي

تجربة عملية: ورشة التعلّم بالنقل

أعِد استخدام سماتٍ مجمَّدة، أم تعلَّم من الصفر؟

M11تجربة عملية5 خطوات
ما ستفعله
  1. accuracy النقل مع تسمياتٍ قليلة
  2. …مقابل from-scratch عند n نفسها
  3. الخريطة المجمَّدة حتميّة
  4. gap تتقلّص كلّما زادت التسميات
  5. مع وفرة من التسميات، يكاد التقدّم يتلاشى

العروض التفاعلية

Decision-tree sandbox

Build a decision tree on a small 2D dataset: Gini impurity, entropy and the information gain of every candidate split are computed, and the axis-aligned decision boundary is drawn by running the tree's own predict() over a grid. Set the depth, min-samples and criterion, and watch it overfit noise.

M3 · L1أُنتج بمساعدة الذكاء الاصطناعي

SVM visualizer

Train a soft-margin SVM with a real dual solver (simplified SMO): the weight vector, bias, margin width 2/||w|| and support vectors are all solved for, and the boundary and margins are drawn from the decision function. Turn C, switch to the RBF kernel and tune gamma, and watch the margin, the support vectors and the C-sweep respond.

M4 · L1أُنتج بمساعدة الذكاء الاصطناعي

Clustering explorer

من درس التجميع

Run a real K-means (Lloyd with a k-means++ start) or DBSCAN on a seeded 2D dataset: the assignment, centroids, core/border/noise labels, inertia and silhouette are all computed. Switch to the moons or rings to watch K-means cut across a shape DBSCAN wraps, and read the elbow and the k-distance graph.

M5 · L1أُنتج بمساعدة الذكاء الاصطناعي

CNN feature visualizer

Apply a fixed, named convolution kernel (Sobel, Laplacian, blur, sharpen, identity) to a small grayscale image, then ReLU, then 2x2 max-pool: every feature map is real 2D-convolution arithmetic, never sketched. Set padding, stride and a second conv layer, and watch the spatial dimensions shrink stage by stage while each kernel detects edges, smooths or sharpens.

M7 · L1أُنتج بمساعدة الذكاء الاصطناعي

Sequence-prediction sandbox

Build a character-level n-gram language model on a built-in text corpus: the add-k smoothed next-character distribution, the training and held-out perplexity (in bits), and seeded sample text are all computed from real counts -- no neural network. Set the order, smoothing k and temperature, drop k to 0 and watch held-out perplexity blow up, and read the generated text as texture.

M8 · L1أُنتج بمساعدة الذكاء الاصطناعي

Transfer Learning Workshop

Demonstrates the transfer-learning MECHANISM on a small 2D task: a fixed seeded feature map (a synthetic STAND-IN for features a big model would have learned on a large related dataset, NOT real pretrained weights) is frozen and only a linear head is trained, versus a network trained from scratch and one fine-tuned from the frozen start. The head, both networks, every accuracy and the accuracy-vs-labels curve are computed; with few labels the frozen features win and the gap shrinks as labels grow.

M11 · L2أُنتج بمساعدة الذكاء الاصطناعي