Choosing the Right Network (اختيار الشبكة المناسبة)
🤖 الذكاء الاصطناعي والتكنولوجيا🎓 الصف العاشر عام📌 هيكل الامتحان: L01 Activities 1.1 – 1.3
🎯 ذاكر الدرس وحل الكويز مجانًا في مذاكرتيActivity 1.1 – compare architectures:
| Feature | Network A (1 hidden) | Network B (2 hidden) | Network C (4 hidden) |
|---|---|---|---|
| Simple or deep? | Simple | Medium | Deep |
| Training time | Fastest | Medium | Slowest |
| Computational cost | Lowest | Medium | Highest |
| Data needed | Least | Medium | Largest dataset |
| Risk of overfitting with small data | Lowest | Medium | Highest |
Activity 1.2 – Model A (1 hidden layer, 20 neurons) vs Model B (5 hidden layers, 200 neurons):
- Recognising handwritten digits (simple dataset) → Model A is enough: fast, cheap, less risk of overfitting.
- Detecting cancer from medical scans (complex dataset) → Model B: complex patterns need a deeper network (with enough data).
- Judge using: overfitting, training time, computational cost, data requirements.
Model B can perform worse than Model A when the task is simple or the dataset is small: it may overfit, train slowly and cost more.
Activity 1.4 – recommendation systems: on a shopping or streaming site, "Recommended for you" shows items similar to what you viewed. Problems: repeated similar products, some irrelevant suggestions, and poor suggestions for new users (not enough data about them). The hidden layers have learned features like your categories, brands and viewing history.
⚠️ There is always a trade-off between model complexity and computational efficiency.
اختبر نفسك: أسئلة على Choosing the Right Network (اختيار الشبكة المناسبة)
Which network is most likely to overfit if only a small amount of data is available?
✅ الجواب: The deepest network (most hidden layers)
Complex models memorise small datasets easily.
Model A: 1 hidden layer, 20 neurons. Model B: 5 hidden layers, 200 neurons. Which suits detecting cancer from medical scans (complex dataset)?
✅ الجواب: Model B
Complex medical images need a deeper network.
Which model suits recognising handwritten digits from a simple dataset?
✅ الجواب: Model A (1 hidden layer)
A simple dataset does not need a deep, costly model.