SOLVED
Multi-armed Bandit Problem in Alteryx
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
a150138
6 - Meteoroid
‎08-14-2019
05:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Alteryx!
Is anyone familiar with the Multi-armed Bandit problem (see: https://www.analyticsvidhya.com/blog/2018/09/reinforcement-multi-armed-bandit-scratch-python/)?
Looking at the code, it seems that the use of iterative macro is necessary. Anyone has an idea how to proceed with this, like a sample workflow?
Thanks all.
- Tiff
Is anyone familiar with the Multi-armed Bandit problem (see: https://www.analyticsvidhya.com/blog/2018/09/reinforcement-multi-armed-bandit-scratch-python/)?
Looking at the code, it seems that the use of iterative macro is necessary. Anyone has an idea how to proceed with this, like a sample workflow?
Thanks all.
- Tiff
Solved! Go to Solution.
Labels:
2 REPLIES 2
JohnJPS
15 - Aurora
‎08-25-2019
02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @a150138
You're right that some sort of iterative macro would probably be needed, however before doing that, since the Python code is literally right there ready to cut and paste, I would consider using the Python tool, or perhaps the R if that works better for you. I've attached a workflow that duplicates their example in Alteryx with both R and Python.
Notes:
- I did rearrange things a little
- I output only the "total reward" figures that are calculated
- I commented out anything that wasn't contributing to that calculation
- Python's "Alteryx.read" didn't play nice with my laptop's crazy security, so I read the physical file from within the Python, rather than grabbing input #1... you can comment out the physical file read and comment back in the Alteryx.read(#1) and it should work for you.
Hope that helps!
John
‎12-04-2019
08:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi John,
Very useful and thanks for the guidance! I will explore the R & Python code inside and see whether I can take it a step further by converting it into a macro (Still learning).
🙂
