Andy Lau commited on
Commit
045990a
·
1 Parent(s): 04fd730

update app.py

Browse files
Files changed (1) hide show
  1. app.py +51 -8
app.py CHANGED
@@ -38,16 +38,59 @@ with stats_col4:
38
 
39
  with st.sidebar:
40
 
41
- url_button('Model Homepage','https://www.loxz.com/#/models/CC')
42
- st.text('')
43
 
44
- url_button('Full Report','https://resources.loxz.com/reports/realtime-ml-character-count-model')
45
- st.text('')
 
46
 
47
- # with info_col3:
 
48
  url_button('Amazon Market Place','https://aws.amazon.com/marketplace')
49
- st.text('')
50
 
51
- with st.expander('Model Description', expanded=False):
52
- st.markdown('Finding the correct length for an email campaign to maximize user engagement can be an ambiguous task. The Loxz Character Count Model allows you to predict the correct length of your emails for a particular industry and a particular type of email. Using these inputs and trained on an extensive proprietary data set from the Loxz family digital archive, the models incorporate real-world and synthetic data to find the optimized character counts. We applied the random forest algorithm in this model. Bootstrapping was also ensembled in the algorithm which effectively prevents overfitting by reducing variance. The model achieves an 86% accuracy on the test set. This inference-based ML model will help the campaign engineers start with an acceptable length and zero in on the best character count, maximizing engagement in their campaign.')
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  with st.sidebar:
40
 
 
 
41
 
42
+ with st.expander('Model Description', expanded=False):
43
+ st.markdown('Finding the correct length for an email campaign to maximize user engagement can be an ambiguous task. The Loxz Character Count Model allows you to predict the correct length of your emails for a particular industry and a particular type of email. Using these inputs and trained on an extensive proprietary data set from the Loxz family digital archive, the models incorporate real-world and synthetic data to find the optimized character counts. We applied the random forest algorithm in this model. Bootstrapping was also ensembled in the algorithm which effectively prevents overfitting by reducing variance. The model achieves an 86% accuracy on the test set. This inference-based ML model will help the campaign engineers start with an acceptable length and zero in on the best character count, maximizing engagement in their campaign.')
44
+
45
 
46
+ url_button('Model Homepage','https://www.loxz.com/#/models/CC')
47
+ url_button('Full Report','https://resources.loxz.com/reports/realtime-ml-character-count-model')
48
  url_button('Amazon Market Place','https://aws.amazon.com/marketplace')
 
49
 
 
 
50
 
51
+ industry_lists = [
52
+ 'Retail',
53
+ 'Software and Technology',
54
+ 'Hospitality',
55
+ 'Adacemic and Education',
56
+ 'Healthcare',
57
+ 'Energy',
58
+ 'Real Estate',
59
+ 'Entertainment',
60
+ 'Fianance and Banking'
61
+ ]
62
+
63
+ campaign_types = [
64
+ 'Promotional',
65
+ 'Transactional',
66
+ 'Webinar',
67
+ 'Survey',
68
+ 'Newsletter',
69
+ 'Engagement',
70
+ 'Curated_Content',
71
+ 'Review_Request',
72
+ 'Product_Announcement',
73
+ 'Abandoned_Cart'
74
+ ]
75
+
76
+ target_variables = [
77
+ 'open_rate',
78
+ 'click_through_rate',
79
+ 'abandoned_cart',
80
+ 'unsubscribe_rate'
81
+ ]
82
+
83
+ industry = st.selectbox(
84
+ 'Please select your industry',
85
+ industry_lists
86
+ )
87
+
88
+ campaign = st.selectbox(
89
+ 'Please select your industry',
90
+ campaign_types
91
+ )
92
+
93
+ target = st.selectbox(
94
+ 'Please select your target variable',
95
+ target_variables
96
+ )