2–5 years · Mid — Python · Statistics · scikit-learn · Feature engineering · Model evaluation · Deployment
Checks the data for concept drift; compares the incoming data distribution to the training data; evaluates model predictions against new labels if available; considers retraining the model with updated data or features.
What tools or methods do you use to detect concept drift?
Check API request logs for response times and error rates; profile the model's inference time to identify bottlenecks; assess the server load and resource allocation; review the data preprocessing steps for inefficiencies; evaluate if caching can be implemented for frequent requests.
After optimising, response times improve but fluctuate. How do you ensure consistent performance moving forward?
Considers using techniques like SMOTE for oversampling or random undersampling; assesses feature importance using models like Random Forest; applies dimensionality reduction techniques like PCA if necessary; evaluates features based on their predictive power using cross-validation.
What metric do you choose to evaluate model performance on this imbalanced dataset?
Monitors the API logs to identify response bottlenecks; checks for model loading time and input data preprocessing efficiency; investigates the hardware and resource utilisation on the server; considers caching predictions for repeated requests.
If the model is too large to cache, what alternative solutions do you explore?
Examines the training data for skewness or outlier effects; checks for data leakage or improper target encoding; evaluates the model's assumptions and performance metrics on different segments; considers alternative algorithms if necessary.
What role does the choice of loss function play in this bias?
Utilises data partitioning or sharding to improve access speeds; leverages in-memory data structures or databases; implements efficient data loading techniques such as lazy loading; evaluates batch processing to reduce overhead.
How do you handle feature engineering in a streaming data scenario?
Load six more — you will get questions you have not seen first.
Give me six more →Say your answer out loud before revealing. Reading the answer first feels like learning and is not.