-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add discounting to LinUCB-based CBs in Pearl
Summary: Adding a discounting multiplier to LinUCB and Neural LinUCB. This will allow the model to forget old data (in Neural LinUCB just the LinUCB layer forgets, not the NN part) by downweighting it. 2 parameters control discounting: 1. `gamma` - this is the multiplier which is applied to `A` and `b` in LinUCB every time discounting is applied 2. `apply_discounting_interval` - this parameter controls how often discounting is applied (every `apply_discounting_interval` data points). If data are weighted, the weights are taken into account (e.g. a data point with weight 10 counts as 10 data points). Support for discounting was added to: 1. `LinearBandit` and `NeuralLinearBandit` classes in Pearl 2. `ap_container` and `ads_creative_ranking` projects in APS Reviewed By: Yonathae Differential Revision: D52890963 fbshipit-source-id: 224c678a0be2362b871ca9538a0cee719a66f5d5
- Loading branch information
1 parent
322992e
commit a8d96bb
Showing
6 changed files
with
162 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters