algo-ad-ctr

Solid

"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict click probability, build an ad ranking model, or evaluate ad creative performance — even if they say 'predict click rate', 'ad relevance scoring', or 'which ad will get more clicks'.".

AI & Automation 22 stars 8 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# CTR Prediction Model ## Overview CTR prediction estimates the probability that a user clicks on an ad given context (user, query, ad, position). Forms the core of ad ranking: AdRank = Bid × pCTR. Typically uses logistic regression or gradient-boosted trees. Training on billions of impressions. ## When to Use **Trigger conditions:** - Building or improving an ad ranking system - Predicting click probability for bid optimization - Evaluating ad creative effectiveness from feature analysis **When NOT to use:** - When predicting post-click conversions (use conversion rate model) - When setting bid amounts (use bidding strategy skill) ## Algorithm ``` IRON LAW: A CTR Model Must Be CALIBRATED Predicting relative ranking is insufficient. The predicted probability must MATCH actual click frequency (e.g., predicted 5% → 5 clicks per 100 impressions). Without calibration, bid optimization breaks: Expected Value = Bid × pCTR × pConversion If pCTR is off by 2x, bids are wrong by 2x. ``` ### Phase 1: Input Validation Collect impression logs with: user features, ad features, query features, position, click label (0/1). Handle class imbalance (CTR typically 1-5%). **Gate:** Sufficient volume (100K+ impressions), click labels verified, no data leakage from position. ### Phase 2: Core Algorithm 1. Feature engineering: user demographics, ad category, query-ad match, historical CTR, time/device features 2. Train model: logistic regression (interpretable) or GBDT (higher accuracy)...

Details

Author
charlieviettq
Repository
charlieviettq/awesome-agent-skill
Created
2 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category