ov-pinka commited on
Commit
89b7e27
·
verified ·
1 Parent(s): 2321d93

Upload 4 files

Browse files

Inflation adjustment, keyword stemming

app.py CHANGED
@@ -35,27 +35,27 @@ with col1:
35
  long = st.number_input("Conference Duration, Days", min_value=0, value=3)
36
 
37
  # Dropdown menus
38
- event_type = st.selectbox("Event Type", ["Conference", "Workshop", "Forum", "Other"])
39
- cntry = st.selectbox("Conference Location Country", ["USA", "China", "India", "Romania", "Other"])
40
  if cntry =="USA":
41
- loc_state = st.selectbox("Conference Location State", [ "CA", "NJ", "NY", "FL", "Other"], index=4)
42
  else:
43
  loc_state = "Other"
44
 
45
  # Checkboxes
46
  st.markdown("<h4>Keywords</h4>", unsafe_allow_html=True)
47
- kw_comp = st.checkbox("Computing")
48
- kw_sys = st.checkbox("Systems")
49
- kw_app = st.checkbox("Applications")
50
- kw_computational = st.checkbox("Computational")
51
- kw_wless = st.checkbox("Wireless")
52
- kw_mdl = st.checkbox("Modeling")
53
- kw_ntwk = st.checkbox("Networking")
54
- kw_des = st.checkbox("Design")
55
- kw_adv = st.checkbox("Advanced")
56
- kw_dist = st.checkbox("Distributed")
57
 
58
-
59
  submit = st.button("Submit")
60
 
61
  # If the submit button is clicked, show output in the second column (col2)
@@ -78,35 +78,29 @@ with col2:
78
  atnd_num = atnd_num / 1.1
79
  ppr_num = ppr_num / 1.08
80
 
81
- data = pd.DataFrame([{'act_atnd_tot_atnd_num': atnd_num,
 
 
82
  'long_atnd_ratio':long/atnd_num,
83
  'act_paprs_num': ppr_num,
84
  'longevity': long,
85
  'papr_atnd_ratio':ppr_num/atnd_num,
86
  'exh_num': exh_num,
87
- 'exh_atnd_ratio': exh_num/atnd_num,
88
- 'computing': int(kw_comp),
89
  'conf_loc_cntry_nm_USA': int(cntry == "USA"),
90
  'conf_loc_cntry_nm_India': int(cntry == "India"),
91
- 'conf_evnt_typ_nm_Workshop': int(event_type == "Workshop"),
92
  'conf_loc_state_nm_CA': int(loc_state == "CA"),
 
93
  'conf_loc_state_nm_NJ': int(loc_state == "NJ"),
94
- 'systems': int(kw_sys),
95
- 'applications': int(kw_app),
96
- 'computational': int(kw_computational),
97
  'conf_loc_cntry_nm_China': int(cntry == "China"),
98
- 'wireless': int(kw_wless),
99
- 'conf_loc_cntry_nm_Romania': int(cntry == "Romania"),
100
- 'conf_loc_state_nm_FL': int(loc_state == "FL"),
101
- 'modeling': int(kw_mdl),
102
- 'networking': int(kw_ntwk),
103
- 'design': int(kw_des),
104
- 'conf_loc_state_nm_NY': int(loc_state == "NY"),
105
- 'conf_evnt_typ_nm_Forum': int(event_type == "Forum"),
106
- 'advanced': int(kw_adv),
107
- 'distributed': int(kw_dist)
108
-
109
  }])
 
110
 
111
 
112
  lambdas = pd.read_csv('lambdas_yeojohnson.csv', header=None, index_col=0)
@@ -143,3 +137,5 @@ with col2:
143
  st.write(f"Audit Fees Amount: ${round(round(audit_exp, -3))}")
144
  st.write("")
145
  st.write("***The numbers are approximate and should be adjusted according to event needs**")
 
 
 
35
  long = st.number_input("Conference Duration, Days", min_value=0, value=3)
36
 
37
  # Dropdown menus
38
+ event_type = st.selectbox("Event Type", ["Conference", "Workshop", "Other"])
39
+ cntry = st.selectbox("Conference Location Country", ["USA", "India", "China", "Other"])
40
  if cntry =="USA":
41
+ loc_state = st.selectbox("Conference Location State", [ "CA", "NJ", "Other"], index=2)
42
  else:
43
  loc_state = "Other"
44
 
45
  # Checkboxes
46
  st.markdown("<h4>Keywords</h4>", unsafe_allow_html=True)
47
+ kw_comp = st.checkbox("Computer(s) / Computing / Computation / Computational")
48
+ kw_sys = st.checkbox("System(s)")
49
+ kw_app = st.checkbox("Application(s)")
50
+ kw_ntwk = st.checkbox("Network(s) /Networking")
51
+ #kw_wless = st.checkbox("Wireless")
52
+ #kw_mdl = st.checkbox("Modeling")
53
+ kw_arch = st.checkbox("Architecture(s)")
54
+ kw_img = st.checkbox("Image / Imaging")
55
+ # kw_adv = st.checkbox("Advanced")
56
+ # kw_dist = st.checkbox("Distributed")
57
 
58
+ st.write("**Please only use the exact keywords listed and avoid including any variations or additional words!**")
59
  submit = st.button("Submit")
60
 
61
  # If the submit button is clicked, show output in the second column (col2)
 
78
  atnd_num = atnd_num / 1.1
79
  ppr_num = ppr_num / 1.08
80
 
81
+
82
+ data = pd.DataFrame([{
83
+ 'act_atnd_tot_atnd_num': atnd_num,
84
  'long_atnd_ratio':long/atnd_num,
85
  'act_paprs_num': ppr_num,
86
  'longevity': long,
87
  'papr_atnd_ratio':ppr_num/atnd_num,
88
  'exh_num': exh_num,
89
+ 'comput': int(kw_comp),
 
90
  'conf_loc_cntry_nm_USA': int(cntry == "USA"),
91
  'conf_loc_cntry_nm_India': int(cntry == "India"),
92
+ 'system': int(kw_sys),
93
  'conf_loc_state_nm_CA': int(loc_state == "CA"),
94
+ 'conf_evnt_typ_nm_Conference': int(event_type == "Conference"),
95
  'conf_loc_state_nm_NJ': int(loc_state == "NJ"),
96
+ 'imag': int(kw_img),
 
 
97
  'conf_loc_cntry_nm_China': int(cntry == "China"),
98
+ 'applic': int(kw_app),
99
+ 'conf_evnt_typ_nm_Workshop': int(event_type == "Workshop"),
100
+ 'network': int(kw_ntwk),
101
+ 'architectur': int(kw_arch),
 
 
 
 
 
 
 
102
  }])
103
+
104
 
105
 
106
  lambdas = pd.read_csv('lambdas_yeojohnson.csv', header=None, index_col=0)
 
137
  st.write(f"Audit Fees Amount: ${round(round(audit_exp, -3))}")
138
  st.write("")
139
  st.write("***The numbers are approximate and should be adjusted according to event needs**")
140
+
141
+ # Add button save those numbers to Excel
budget_prediction_model.joblib CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1638cad00656550f71eedb730ffbb33b9fc0b42f23dc6397d975586487c842bb
3
- size 29676185
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86ac4a2ad5f848c4fefe30769537418d27aba96e8e7d504338ad0ddf5f9312c3
3
+ size 34477193
lambdas_yeojohnson.csv CHANGED
@@ -1,7 +1,7 @@
1
- fin_inc_tot_amt,-0.13841237930384687
2
- act_atnd_tot_atnd_num,-0.24535442189745793
3
- exh_num,-0.26499435516158876
4
- act_paprs_num,-0.17349663203576338
5
- est_pgs_num,-0.20332088971438553
6
- act_list_price_amt,-1.2227755709875954
7
- act_membr_price_amt,-1.2018140009880975
 
1
+ fin_inc_tot_amt,-0.15822115298278824
2
+ act_atnd_tot_atnd_num,-0.2363952630099358
3
+ exh_num,-0.26375210803236016
4
+ act_paprs_num,-0.17673646656979733
5
+ est_pgs_num,-0.21722921908368487
6
+ act_list_price_amt,-1.214164679557143
7
+ act_membr_price_amt,-1.168323387670939
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
- scikit-learn
2
- streamlit
3
- joblib
4
- scipy
 
 
1
+ scikit-learn
2
+ streamlit
3
+ joblib
4
+ scipy
5
+ openpyxl