Comments (2)
Thank you for using RecSim and sorry for the bug in the chocolate/kale example. The following is the correct version of generate_response(). As you can see we mess up kale_mean and choc_mean here but the code in https://github.com/google-research/recsim/blob/master/recsim/environments/long_term_satisfaction.py is correct.
def generate_response(self, doc, response):
response.clicked = True
linear interpolation between choc and kale.
engagement_loc = (doc.kaleness * self._user_state.kale_mean
+ (1 - doc.kaleness) * self._user_state.choc_mean)
engagement_loc *= self._user_state.satisfaction
engagement_scale = (doc.kaleness * self._user_state.kale_stddev
+ ((1 - doc.kaleness)
* self._user_state.choc_stddev))
log_engagement = np.random.normal(loc=engagement_loc,
scale=engagement_scale)
response.engagement = np.exp(log_engagement)
We will update the repository shortly. Let me know if you still have questions.
from recsim.
No, that's it. Thanks for your response!
from recsim.
Related Issues (20)
- Not able to get a converged reward for interest_evolution env and full_slate_q_agent HOT 6
- Support for interleaved user interaction HOT 1
- Accuracy and Diversity HOT 1
- Problem in tfnightly and dopamine HOT 3
- May I ask when can tensorflow2.0 be supported?
- Minor bug in slate_decomp_q_agent HOT 1
- Recommender System step-by-step output HOT 2
- Q&A HOT 2
- Returning same slate after every iteration HOT 4
- Problem of Large action spaces in interest evolution HOT 1
- Simulations with delayed feedback HOT 2
- An error occurred while running python main.py HOT 1
- Bug in slate_decomp_q_agent HOT 2
- TF2.0 Compatibility Bug HOT 1
- Comparison operator not supported for 'collections.OrderedDict'
- Using slate_decomp_q_agent in production
- My fault
- wrong links to documentation
- User aware document sampler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recsim.