Skip to content

Conversation

@zoeshao0425
Copy link

Hi there, my name is Zoe. This pull request introduces several new features and agents to the ad server, enhancing its capabilities and better simulating a real-world online advertising environment. The following changes have been made:

  • Ads Attributes: Added budget, bid, and type attributes to ads to better represent the financial aspects of ad campaigns and provide a categorization system for ads.
  • User Class: Introduced a User class to model user preferences, allowing for more realistic user behavior in the environment.
  • Click Probability: Changed the click probability from a binary system to continuous functions, making it more dynamic and better suited for real-world scenarios.
  • New Agents: Implemented Thompson Sampling Agent and Explore-Then-Commit Agent to test against existing agents and assess their performance in the updated environment.

These changes will provide a more comprehensive and realistic simulation of online advertising, allowing for better evaluation of various agents' performance in different scenarios. One limitation I need to acknowledge is that there are a few constants that could be changed to better simulate real scenario. Maybe these could be added into parser, allowing the users to modify more easily.

Please consider merging this pull request to enhance the capabilities of the ad server. If you have any questions or suggestions, feel free to comment.

Thank you for your consideration!

@falox falox self-requested a review March 18, 2023 16:44
@falox falox added the enhancement New feature or request label Mar 18, 2023
@falox
Copy link
Owner

falox commented Apr 11, 2023

Hi @zoeshao0425, thanks for the PR - that's really great!
I'm on it, it will take some days since I'm a bit busy at the moment.

@zoeshao0425
Copy link
Author

zoeshao0425 commented Apr 13, 2023

Hi @zoeshao0425, thanks for the PR - that's really great!
I'm on it, it will take some days since I'm a bit busy at the moment.

Hi @falox, No worries at all, take your time! I'm glad that I had the opportunity to contribute to this amazing ad-server. Writing the code and working on the pull request has been a great learning experience for me. The concise design and beautiful visualizations of the ad-server are definitely something I admire. I appreciate the chance to be involved, and I'm looking forward to any feedback you might have on my PR when you have time. Thanks again!

@falox
Copy link
Owner

falox commented Aug 20, 2023

Hi @zoeshao0425, I'm resuming this review. Can you display the revenue chart in the same CTR chart, using the seconday axis? This would better display the correlation between CTR and revenue over time

time_of_day = impressions / self.max_impressions
return time_of_day

def get_ad_type_click_probability(self, ad_type, time_of_day):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this can be simpler (I mean more readable). Anyway, can you please comment this method explaining the logic?

# Your custom logic to generate budget based on ad_type
return self.ads_random.uniform(500, 1000)

def get_current_time_of_day(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rename to get_current_time. It's a generic time T, not necessarily a cyclic 24h time

Co-authored-by: Alberto Falossi <26248823+falox@users.noreply.github.com>
@zoeshao0425
Copy link
Author

Hi @zoeshao0425, I'm resuming this review. Can you display the revenue chart in the same CTR chart, using the seconday axis? This would better display the correlation between CTR and revenue over time

Hi @falox, thank you for your feedback!! I really appreciate it! This is my senior year in college, and I am way busier than I expected, so I have not got enough time to go through these comments. Sorry about that! I will look into them more thoroughly and implemented the changes you suggested during winter break if you don't mind :)

@falox
Copy link
Owner

falox commented Dec 8, 2023

will look into them more thoroughly and implemented the changes you suggested during winter break if you don't mind :)

@zoeshao0425 Absolutely, take your time Zoe. As you can see, this repo is maintained on a best effort basis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants