You have a highly imbalanced dataset with rare positive cases. Which performance metric would be the most informative, and why?
- AUC, as it provides a comprehensive evaluation of the model
- Accuracy, as it gives overall performance
- F1-Score, as it balances Precision and Recall
- Precision, as it focuses on false positives
In a highly imbalanced dataset, F1-Score is often most informative as it balances Precision and Recall. Accuracy might be misleading, and while AUC and Precision are useful, F1-Score provides a better overall sense of how well the model handles both classes.
What does Precision measure in classification problems?
- False Positives / Total predictions
- True Negatives / (True Negatives + False Positives)
- True Positives / (True Positives + False Negatives)
- True Positives / (True Positives + False Positives)
Precision is the ratio of true positive predictions to the sum of true positives and false positives. It focuses on the accuracy of the positive predictions and is particularly important when the cost of false positives is high.
Reinforcement learning involves an agent interacting with an environment through actions and receiving __________ as feedback.
- accuracy
- loss
- penalties
- rewards and penalties
Reinforcement learning uses both rewards and penalties as feedback to guide the learning process.
In the field of agriculture, Machine Learning can be applied for ____________ optimization and disease prediction.
- Crop Yield
- Fraud Detection
- Text Classification
- Traffic Flow
Machine Learning can be applied in agriculture for Crop Yield Optimization, analyzing various factors like soil, weather, and irrigation to predict and improve crop output.
You are tasked with optimizing a Decision Tree that is underperforming. What pruning techniques might you consider, and why?
- Add more training data
- Cost Complexity Pruning, Reduced Error Pruning
- Increase the number of features
- Increase tree depth
Cost Complexity Pruning and Reduced Error Pruning are techniques to control the complexity of the tree, preventing overfitting and potentially improving performance. They help by removing branches that do not add significant predictive power to the model.
What application of Machine Learning helps in predicting weather patterns and natural disasters?
- Education Enhancement
- Fraud Detection
- Recommender Systems
- Weather Prediction
Machine Learning is applied to predict weather patterns and natural disasters by analyzing historical weather data, recognizing patterns, and forecasting future conditions.
Consider a scenario where you need to combine supervised and unsupervised techniques. What might be a use case for semi-supervised learning?
- Classification with abundant labeled data
- Classification with limited labeled data
- Clustering without labels
- Real-time decision-making
Semi-Supervised Learning is particularly useful for classification tasks when there are limited labeled data, combining strengths of supervised and unsupervised techniques.
How would you validate the quality of clusters formed in a given dataset?
- By Using Metrics Like Silhouette Score
- By the Number of Clusters Formed
- Only by Visual Inspection
- Through Specific Algorithms Like DBSCAN
The quality of clusters can be validated by using various metrics such as Silhouette Score, Davies–Bouldin Index, etc., which evaluate how well the data points are grouped within clusters and separated between different clusters.
You implemented the KNN algorithm, and the model is performing poorly. What are the parameters you would tune, and how would you approach choosing the optimal K and distance metric?
- Increase K and use Euclidean distance
- Reduce dimensions and use any distance metric
- Use cross-validation to find optimal K and distance metric
- Use the same K for all datasets
Utilizing cross-validation helps in finding the optimal value of K and selecting an appropriate distance metric, leading to improved performance in KNN.
If a model's errors have many outliers, the ________ may be significantly larger than the ________.
- MAE, RMSE
- MSE, MAE
- R-Squared, Adjusted R-Squared
- RMSE, MAE
If a model's errors have many outliers, the Root Mean Squared Error (RMSE) may be significantly larger than the Mean Absolute Error (MAE). RMSE is sensitive to larger errors, and outliers will have a pronounced effect on this metric. In contrast, MAE is less sensitive to outliers, leading to a smaller value in the presence of such errors.