Tüm uzmanlıklarTeknoloji · İş görüşmesi

Makine öğrenmesi

Makine öğrenmesi mülakatları formüllerden çok fikirleri sınar. Zorluk, overfitting'i, metrikleri ve leakage'i her biri için bir örnekle, sade sözlü İngilizceyle anlatabilmektir.

Kelimeler → ifadeler → cümleler → konuşma

SpeakRole’i dene ↗
İş görüşmesiMakine öğrenmesi
V

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

0:18
Mülakat sorusu

Makine öğrenmesi

Makine öğrenmesi pozisyonlarının mülakatçıları genellikle teoriyi pratik muhakemeyle karıştırır. Bir yöntemin ne yaptığını sorarlar; ayrıca bir modelin iyi olduğunu nasıl bileceğinizi ve bir not defteri (notebook) ile gerçek bir ürün arasında neyin ters gidebileceğini de. Birçok aday algoritmaları bilir ve ikinci kısmı unutur.

Basit bir sözlü kalıp kullanın: fikir tek cümleyle, gerçek bir problemden küçük bir örnek ve ana risk. Matematikle başlamayın. Mülakatçı denklemi isterse sorar; sade açıklamanız anladığınızı zaten göstermiş olur.

  • ✓Kelimeler → ifadeler → cümleler → konuşma
  • ✓Yanıtın anlamı
  • ✓Dil

Sık sorulan mülakat soruları ve örnek cevaplar

What is the difference between supervised and unsupervised learning?

Denetimli (supervised) ile denetimsiz (unsupervised) öğrenme arasındaki fark nedir?

Mülakatçı ne duymak ister. Etiketli ve etiketsiz veri, her biri için gerçekçi bir örnek ve değerlendirme ile etiketleme maliyetinin farklı olduğu nokta.

Yüksek sesle çalışmak için İngilizce örnek cevap

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 nedir ve onunla nasıl başa çıkarsınız?

Mülakatçı ne duymak ister. Net bir tanım, doğrulama kümesiyle (validation set) nasıl tespit edileceği ve yalnızca bir değil, birkaç çözüm.

Yüksek sesle çalışmak için İngilizce örnek cevap

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?

Bir sınıflandırma problemi için değerlendirme metriğini nasıl seçersiniz?

Mülakatçı ne duymak ister. Dengesiz veride accuracy'nin neden yanıltabileceği, precision ile recall ve bunların her hatanın maliyetine bağlanması.

Yüksek sesle çalışmak için İngilizce örnek cevap

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 nedir ve özellikleri (feature) bundan kaçınarak nasıl oluşturursunuz?

Mülakatçı ne duymak ister. Somut bir örnek, önce bölme alışkanlığı, zamana dayalı bölmeler ve her özellik için sorulacak bir soru.

Yüksek sesle çalışmak için İngilizce örnek cevap

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?

Bir modeli nasıl canlıya alır ve sağlıklı tutarsınız?

Mülakatçı ne duymak ister. Paketleme, servis yöntemi, güvenli sürüm, veri kaymasının (data drift) izlenmesi ve yeniden eğitim ile geri alma planı.

Yüksek sesle çalışmak için İngilizce örnek cevap

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.

Anahtar terimler nasıl telaffuz edilir

overfitting
O-vır-FİT-ing
precision
pri-Sİ-jın
recall
Rİ-kol
regularisation
reg-yı-lay-ZEY-şın
gradient
GREY-di-ınt
variance
VER-i-ıns
feature
Fİ-çır

Cevap vermek için kullanışlı kalıplar

  • It depends on the cost of a false positive and a false negative.Bu, yanlış pozitifin ve yanlış negatifin maliyetine bağlı.
  • First I would build a simple baseline.Önce basit bir baseline kurardım.
  • The model works well on the training data but not on new data.Model eğitim verisinde iyi çalışıyor ama yeni veride değil.
  • I would check for data leakage.Data leakage olup olmadığını kontrol ederdim.
  • We measured it on a held-out test set.Bunu ayrılmış (held-out) bir test kümesinde ölçtük.
  • The data may have drifted since we trained the model.Modeli eğittiğimizden beri veri kaymış (drift) olabilir.
  • I would validate this with an experiment.Bunu bir deneyle doğrulardım.

Sık yapılan hatalar

  • "feature" ile "future"ı karıştırmak. Feature "Fİ-çır", future "FYU-çır" diye okunur ve bu alanda bütün gün "feature" dersiniz.
  • Sayıları belirsiz okumak. "Zero point nine five" ya da "ninety-five percent" deyin ve fifteen (fifTEEN) ile fifty (FIFty) arasındaki vurguya dikkat edin.
  • Sınıf dengesinden söz etmeden accuracy vermek. Dengesiz veride yüksek bir accuracy hiçbir şey ifade etmeyebilir.
  • Her problem için derin sinir ağıyla başlamak. Birçok tablo verisi (tabular) probleminde basit bir model güçlü bir baseline'dır ve bunu söylemek muhakemeyi gösterir.
  • Modeli anlatıp iş hedefinden hiç söz etmemek. Tahminin hangi kararı desteklediğini ve işe yaradığını nasıl bileceğinizi söyleyin.

Sıkça sorulan sorular

Ne kadar matematik anlatmam gerekir?

Yaygın modellerin ve kayıp fonksiyonlarının (loss function) ardındaki sezgiyi anlatabilmeli, gradient descent'i basitçe tarif edebilmelisiniz. Uzun türetmeler uygulamalı pozisyonlardan çok araştırma pozisyonlarında görülür.

Hangi araçlardan söz etmeliyim?

Gerçekten kullandıklarınızı söyleyin; örneğin scikit-learn, PyTorch ya da XGBoost ve deneyleri ile sürümleri nasıl takip ettiğinizi. Kısa ve dürüst bir liste, uzun bir listeden iyidir.

Veri gizliyken bir projeden nasıl söz ederim?

Problem türünü, verinin çeşidini ve yaklaşımınızı isim ya da kesin rakam vermeden anlatın. Kararlarınıza odaklanın: veriyi nasıl böldüğünüz, hangi metriği seçtiğiniz ve ilk model başarısız olduğunda ne yaptığınız.

Bir cevabı okumak ile onu söylemek aynı şey değildir. Her soruyu yüksek sesle çalışın, ardından kendi cevabınızın anlamını ve dilini karşılaştırın.

SpeakRole’i dene ↗

Bu alandaki diğer konular