Todas las especialidadesTecnología · Entrevista de trabajo

Aprendizaje automático

Las entrevistas de machine learning comprueban ideas más que fórmulas. El reto es explicar el sobreajuste, las métricas y la fuga de datos en un inglés oral sencillo, con un ejemplo para cada uno.

Palabras → expresiones → frases → conversación

Probar SpeakRole ↗
Entrevista de trabajoAprendizaje automático
V

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

0:18
Pregunta del entrevistador

Aprendizaje automático

Los entrevistadores de puestos de machine learning suelen mezclar teoría con criterio práctico. Preguntan qué hace un método, pero también cómo sabrías que un modelo es bueno y qué podría salir mal entre un notebook y un producto real. Muchos candidatos conocen los algoritmos y se olvidan de la segunda parte.

Usa un patrón oral sencillo: la idea en una frase, un pequeño ejemplo de un problema real y el riesgo principal. No empieces por las matemáticas. Si el entrevistador quiere la ecuación, la pedirá, y tu explicación sencilla ya habrá demostrado que la entiendes.

  • ✓Palabras → expresiones → frases → conversación
  • ✓Sentido de la respuesta
  • ✓Idioma

Preguntas habituales y respuestas de ejemplo

What is the difference between supervised and unsupervised learning?

¿Cuál es la diferencia entre aprendizaje supervisado y no supervisado?

Qué quiere oír el entrevistador. Con etiquetas frente a sin etiquetas, un ejemplo realista de cada uno y la idea de que la evaluación y el coste de etiquetar son cosas distintas.

Respuesta de ejemplo en inglés para practicar en voz alta

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?

¿Qué es el sobreajuste (overfitting) y cómo lo abordas?

Qué quiere oír el entrevistador. Una definición clara, cómo detectarlo con un conjunto de validación y varios remedios, no solo uno.

Respuesta de ejemplo en inglés para practicar en voz alta

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?

¿Cómo eliges una métrica de evaluación para un problema de clasificación?

Qué quiere oír el entrevistador. Por qué la exactitud (accuracy) puede engañar con datos desbalanceados, precisión frente a recall y un vínculo con el coste de cada error.

Respuesta de ejemplo en inglés para practicar en voz alta

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?

¿Qué es la fuga de datos (data leakage) y cómo construyes features sin ella?

Qué quiere oír el entrevistador. Un ejemplo concreto, el hábito de dividir primero, divisiones por tiempo y una pregunta que hacer sobre cada feature.

Respuesta de ejemplo en inglés para practicar en voz alta

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?

¿Cómo llevas un modelo a producción y lo mantienes sano?

Qué quiere oír el entrevistador. Empaquetado, forma de servirlo, lanzamiento seguro, monitorización de la deriva de datos (data drift) y un plan de reentrenamiento y marcha atrás.

Respuesta de ejemplo en inglés para practicar en voz alta

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.

Cómo pronunciar los términos clave

overfitting
ó-ver-fít-ing
precision
pri-sí-yon
recall
rí-col
regularisation
ré-guiu-la-rai-séi-shon
gradient
gréi-di-ent
variance
vér-i-ans
feature
fí-cher

Frases útiles para responder

  • It depends on the cost of a false positive and a false negative.Depende del coste de un falso positivo y de un falso negativo.
  • First I would build a simple baseline.Primero construiría un baseline sencillo.
  • The model works well on the training data but not on new data.El modelo funciona bien con los datos de entrenamiento, pero no con datos nuevos.
  • I would check for data leakage.Comprobaría si hay fuga de datos.
  • We measured it on a held-out test set.Lo medimos con un conjunto de test reservado.
  • The data may have drifted since we trained the model.Los datos pueden haber cambiado (drift) desde que entrenamos el modelo.
  • I would validate this with an experiment.Validaría esto con un experimento.

Errores habituales que debes evitar

  • Confundir "feature" y "future". Feature es "FEE-cher" (fí-cher) y future es "FYOO-cher" (fiú-cher), y en este campo dirás "feature" todo el día.
  • Leer los números sin claridad. En inglés los decimales llevan punto, no coma: di "zero point nine five" o "ninety-five percent", y cuida el acento en fifteen (fifTEEN) y fifty (FIFty).
  • Citar la exactitud sin mencionar el equilibrio de las clases. Una exactitud alta con datos desbalanceados puede no significar nada.
  • Empezar con una red neuronal profunda para todos los problemas. Para muchos problemas con datos tabulares, un modelo sencillo es un baseline sólido, y decirlo demuestra criterio.
  • Describir el modelo pero nunca el objetivo de negocio. Di qué decisión apoya la predicción y cómo sabrías que ayudó.

Preguntas frecuentes

¿Cuántas matemáticas tengo que explicar?

Debes saber explicar la intuición detrás de los modelos y las funciones de pérdida habituales y describir el descenso de gradiente de forma sencilla. Las demostraciones largas son más comunes en puestos de investigación que en puestos aplicados.

¿Qué herramientas debo mencionar?

Nombra las que usaste de verdad, por ejemplo scikit-learn, PyTorch o XGBoost, y di cómo hacías el seguimiento de experimentos y versiones. Una lista corta y honesta es mejor que una larga.

¿Cómo hablo de un proyecto cuando los datos son confidenciales?

Describe el tipo de problema, el tipo de datos y tu enfoque sin nombres ni cifras exactas. Céntrate en tus decisiones: cómo dividiste los datos, qué métrica elegiste y qué hiciste cuando el primer modelo falló.

Leer una respuesta no es lo mismo que decirla. Practica cada pregunta en voz alta y después compara el sentido y el idioma de tu propia respuesta.

Probar SpeakRole ↗

Otros temas de esta área