Spaces:
Sleeping
Sleeping
Commit
·
f6f73d9
1
Parent(s):
d064765
Update app.py
Browse files
app.py
CHANGED
@@ -50,13 +50,13 @@ st.markdown(
|
|
50 |
'Simulate A/B optimization with policy gradient reinforcement learning')
|
51 |
|
52 |
|
53 |
-
learning_rate = st.
|
54 |
|
55 |
-
prob_A = st.
|
56 |
|
57 |
-
prob_B = st.
|
58 |
|
59 |
-
epochs = st.
|
60 |
|
61 |
information_for_plotting = np.zeros((epochs, 10))
|
62 |
|
|
|
50 |
'Simulate A/B optimization with policy gradient reinforcement learning')
|
51 |
|
52 |
|
53 |
+
learning_rate = st.text_input('Learning rate', value=0.1, height=25)
|
54 |
|
55 |
+
prob_A = st.text_input('Click probability of ad A', 0.4, height=75)
|
56 |
|
57 |
+
prob_B = st.text_input('Click probability of ad B', 0.5, height=75)
|
58 |
|
59 |
+
epochs = int(st.text_input('Number of ad impressions (epochs)', 2000, height=75))
|
60 |
|
61 |
information_for_plotting = np.zeros((epochs, 10))
|
62 |
|