Practice
Solution
Step 1: Understand each metric's focus
Precision and recall focus on relevance, while diversity score measures content variety.Step 2: Eliminate wrong options
Precision (A), recall (B), and F1-score (D) do not measure diversity. They focus on relevance and balance between precision and recall.Final Answer:
Option C -> Option CQuick Check:
Diversity score measures content variety [OK]
Solution
Step 1: Identify the task.
The task is to predict new connections based on node similarity in a graph.Step 2: Evaluate options.
K-Means Clustering (A) is for clustering, not link prediction. Collaborative Filtering (B) is for recommendation systems, not graph-based predictions. Decision Trees (D) are for classification/regression, not graph-based link prediction. Node2Vec (C) is designed for learning node embeddings in graphs, making it suitable for link prediction.Final Answer:
Option A -> Option AQuick Check:
Node2Vec for graph embeddings. [OK]
Solution
Step 1: Identify the role of each component
Bi-Encoders encode both queries and documents into a shared vector space for efficient retrieval.Step 2: Eliminate wrong options
Cross-Encoders evaluate query-document pairs directly, Dense Retrievers use encoded vectors, Sparse Retrievers use traditional methods.Final Answer:
Option A -> Option AQuick Check:
Bi-Encoder = shared vector space [check]
Solution
Step 1: Consider dataset size and complexity.
Deep learning models require large datasets to perform well, while simpler models can suffice for smaller datasets.Step 2: Evaluate the trade-offs.
Always use deep learning for better accuracy: Deep learning isn't always better, especially with small datasets. Use logistic regression for faster training times: Logistic regression is faster but may not capture complex patterns. Use logistic regression if interpretability is crucial: Logistic regression is interpretable but may lack accuracy on complex tasks. Use deep learning if you have a large labeled dataset: Deep learning is suitable for large datasets where complex patterns exist.Final Answer:
Option B -> Option BQuick Check:
Deep learning needs large datasets. [OK]
Solution
Step 1: Assess the data and resource context
Learning-to-rank models excel with rich interaction data.Step 2: Evaluate the constraints
BM25 is better for small datasets, interpretability, and limited resources.Final Answer:
Option D -> Option DQuick Check:
Use learning-to-rank with rich interaction data. [OK]
