Problem
Not every recommender fits the user-by-item pattern. On a freelance marketplace most clients are first-time, and the right person depends on the job (type of work, skills, scope, budget, experience level), not on the client's past hires. Collaborative and content-based models anchor on the client's earlier hires and ignore how freelancers performed on jobs like this one.
Example from the article: a client posts an on-premise photography job. Past ratings of freelancers on photography jobs in the area matter more than the client's earlier copywriting hire.
Solution in brief
Predict the outcome as a function of item and context, , and drop the user. For each candidate item, aggregate its past feedback only over past cases whose context matches the current case, one feature per context dimension and feedback type. Feed these features to a tree model. When the user still matters, stack a second model on the first model's user-agnostic prediction.
Questions this case answers
- How to recommend items when context decides fit and the user's own history is weak or missing, so user-item collaborative filtering has little to learn from
- How to encode item feedback aggregated over past cases that match the current context while keeping the feature count linear in context and feedback dimensions
- How to train a second-stage model on top of a first-stage prediction without leakage when the second stage uses aggregates built from the first stage's output
- How to recommend the best freelancer for a new job when most clients are first-time and their own history says little?
Tools and methods
- Context-matched aggregations — average each feedback metric over past cases that share the current value of a context dimension, with SQL case logic.
- XGBoost — tree-based model trained on the engineered features to predict feedback.
- Layered models — a context-only model first, then a second model that tailors its prediction to the user, trained on non-overlapping data.
Google or a one-time email code. No password.