كل التخصصاتالتقنية · مقابلة عمل

التعلم الآلي

تختبر مقابلات تعلّم الآلة الأفكار أكثر من المعادلات. التحدي أن تشرح الإفراط في الملاءمة (overfitting) والمقاييس والتسرّب بإنجليزية منطوقة بسيطة، مع مثال لكل منها.

كلمات → عبارات → جمل → تحدث

جرّب SpeakRole ↗
مقابلة عملالتعلم الآلي
V

How do you know a model is good enough to ship?

0:18
سؤال المقابل

التعلم الآلي

يمزج المحاورون في وظائف تعلّم الآلة عادةً بين النظرية والحكم العملي. يسألون ماذا تفعل الطريقة، لكن أيضًا كيف ستعرف أن النموذج جيد، وما الذي قد يسوء بين الدفتر (notebook) والمنتج الحقيقي. كثير من المرشحين يعرفون الخوارزميات وينسون الجزء الثاني.

استخدم نمطًا منطوقًا بسيطًا: الفكرة في جملة واحدة، ومثال صغير من مشكلة حقيقية، والخطر الرئيس. لا تبدأ بالرياضيات. إذا أراد المحاور المعادلة فسيطلبها، وسيكون شرحك المبسّط قد أظهر أنك تفهمها.

  • ✓كلمات → عبارات → جمل → تحدث
  • ✓معنى الإجابة
  • ✓اللغة

أكثر الأسئلة تكرارًا ونماذج الإجابات

What is the difference between supervised and unsupervised learning?

ما الفرق بين التعلم الخاضع للإشراف (supervised) والتعلم غير الخاضع للإشراف (unsupervised)؟

ما الذي يريد المحاور سماعه. وجود التسميات (labels) مقابل غيابها، ومثال واقعي لكل منهما، وأن كلفة التقييم والوسم تختلفان.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

In supervised learning, we have labelled examples: for each input, we know the right answer, and the model learns to predict it. Examples are predicting customer churn or marking emails as spam. In unsupervised learning, there are no labels, and the model looks for structure on its own, for example grouping customers into segments with clustering. Supervised results are easier to evaluate, because we can compare predictions with the truth. Unsupervised results need a person to judge whether the groups make sense. In practice, I first ask whether I have reliable labels, because getting good labels is often the hardest and most expensive part.

What is overfitting, and how do you deal with it?

ما الإفراط في الملاءمة (overfitting)، وكيف تتعامل معه؟

ما الذي يريد المحاور سماعه. تعريف واضح، وكيفية اكتشافه بمجموعة تحقق (validation set)، وعدة علاجات لا علاج واحد.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

Overfitting means that the model learns the training data too well, including its noise, so it works well on the training data and badly on new data. The sign is a big gap between the training score and the validation score. To detect it, I always keep a validation set or use cross-validation. To reduce it, I can collect more data, simplify the model, add regularisation, use early stopping or remove noisy features. For trees, I limit the depth. The opposite problem is underfitting: the model is too simple and is bad on both sets. I start with a simple baseline, so I know how much a complex model really adds.

How do you choose an evaluation metric for a classification problem?

كيف تختار مقياس تقييم لمسألة تصنيف؟

ما الذي يريد المحاور سماعه. لماذا قد تضلّل الدقة العامة (accuracy) في البيانات غير المتوازنة، وprecision مقابل recall، وربط ذلك بكلفة كل خطأ.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

The right metric depends on the cost of each kind of mistake. Accuracy can be misleading when the classes are imbalanced. If only one percent of transactions are fraud, a model that always says "not fraud" is ninety-nine percent accurate and completely useless. So I look at precision and recall. Precision answers: of the cases I flagged, how many were correct? Recall answers: of all the real cases, how many did I find? For fraud or a medical test, I usually want high recall and accept more false alarms. For a spam filter, precision matters more, because blocking a real email is expensive. I choose the threshold together with the business.

What is data leakage, and how do you build features without it?

ما تسرّب البيانات (data leakage)، وكيف تبني الخصائص (features) من دونه؟

ما الذي يريد المحاور سماعه. مثال محدد، وعادة التقسيم أولًا، والتقسيم بحسب الزمن، وسؤال يُطرح عن كل خاصية.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

Data leakage is when the model gets information during training that it will not have at prediction time. The result is a great score in the notebook and a poor result in production. A common example is a feature that is created after the event, like a refund flag when we predict churn. Another is fitting a scaler on the whole dataset before the split. So I split the data first and do all feature engineering inside a pipeline fitted on the training part only. For time-based problems, I split by time, not randomly. For every feature, I ask: will I know this value at prediction time?

How do you take a model to production and keep it healthy?

كيف تنقل نموذجًا إلى بيئة الإنتاج وتُبقيه سليمًا؟

ما الذي يريد المحاور سماعه. التغليف، وأسلوب التقديم (serving)، وإطلاق آمن، ومراقبة انجراف البيانات (data drift)، وخطة لإعادة التدريب والتراجع.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

A model in a notebook is only the first step. For production, I package the model together with its preprocessing, version it, and serve it either as an API for real-time predictions or as a batch job. Before the release, I compare it with the current solution, often in shadow mode or with an A/B test. After the release, I monitor the service, like latency and errors, but also the input data and the predictions. The world changes, so the data can drift, and the quality drops silently. I set alerts, keep the option to roll back, and plan retraining. I also make sure that features are calculated in the same way in training and in serving.

كيف تنطق المصطلحات الأساسية

overfitting
أُوڤَرْفِتِنغ
precision
بْرِسِيجِن
recall
رِيكُول
regularisation
رِغْيُلَرَايْزَيْشِن
gradient
غْرَيْدِيِنْت
variance
ڤَيْرِيَنْس
feature
فِيتْشَر

عبارات مفيدة للإجابة

  • It depends on the cost of a false positive and a false negative.هذا يعتمد على كلفة الإيجابية الكاذبة (false positive) والسلبية الكاذبة (false negative).
  • First I would build a simple baseline.أولًا كنت سأبني خط أساس بسيطًا (baseline).
  • The model works well on the training data but not on new data.يعمل النموذج جيدًا على بيانات التدريب لكن ليس على بيانات جديدة.
  • I would check for data leakage.كنت سأتحقق من وجود تسرّب للبيانات.
  • We measured it on a held-out test set.قسناه على مجموعة اختبار محجوزة (held-out test set).
  • The data may have drifted since we trained the model.ربما انجرفت البيانات منذ أن دربنا النموذج.
  • I would validate this with an experiment.كنت سأتحقق من هذا بتجربة.

أخطاء شائعة

  • الخلط بين "feature" و"future". تُنطق feature هكذا FEE-cher «فِيتْشَر»، وfuture هكذا FYOO-cher «فْيُوتْشَر»، وفي هذا المجال ستقول "feature" طوال الوقت.
  • قراءة الأرقام بغير وضوح. قل "zero point nine five" أو "ninety-five percent"، وانتبه إلى النبر في fifteen (fifTEEN) وfifty (FIFty).
  • ذكر الدقة العامة (accuracy) دون ذكر توازن الفئات. قد لا تعني دقة عالية على بيانات غير متوازنة شيئًا.
  • البدء بشبكة عصبية عميقة لكل مسألة. في كثير من المسائل الجدولية يكون النموذج البسيط خط أساس قويًا، وقولك ذلك يُظهر حسن الحكم.
  • وصف النموذج دون ذكر هدف العمل أبدًا. قل أي قرار يدعمه التوقع وكيف ستعرف أنه أفاد.

الأسئلة الشائعة

كم من الرياضيات يجب أن أشرح؟

ينبغي أن تستطيع شرح الحدس وراء النماذج الشائعة ودوال الخسارة (loss functions)، ووصف النزول التدرجي (gradient descent) ببساطة. الاشتقاقات الطويلة أكثر شيوعًا في وظائف البحث منها في الوظائف التطبيقية.

ما الأدوات التي أذكرها؟

سمِّ ما استخدمته فعلًا، مثل scikit-learn أو PyTorch أو XGBoost، وقل كيف تتبّعت التجارب والإصدارات. قائمة قصيرة صادقة أفضل من قائمة طويلة.

كيف أتحدث عن مشروع بياناته سرية؟

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

قراءة الإجابة ليست مثل قولها. تدرّب على كل سؤال بصوت عالٍ، ثم قارن معنى إجابتك ولغتها بالنموذج.

جرّب SpeakRole ↗

موضوعات أخرى في هذا المجال