tagirshin commited on
Commit
f5d4008
1 Parent(s): e34f9f5

changed default seed

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -220,6 +220,7 @@ def load_data(batch_size):
220
  st.title('Inverse QSAR of Tubulin with VQGAE')
221
 
222
  with st.sidebar:
 
223
  with st.form("ga_options"):
224
  num_generations = st.slider(
225
  'Number of generations for GA',
@@ -290,7 +291,7 @@ with st.sidebar:
290
  # 2/3 of num_parents_mating
291
  use_ordering_score = st.toggle('Use ordering score', value=False)
292
  batch_size = int(st.number_input("Batch size", value=250, placeholder="Type a number..."))
293
- random_seed = int(st.number_input("Random seed", value=42, placeholder="Type a number..."))
294
  submit_side = st.form_submit_button('Start optimisation')
295
 
296
  intro_text = '''
@@ -322,7 +323,7 @@ if submit_side or submit_main:
322
  keep_parents = 60
323
  use_ordering_score = False
324
  batch_size = 250
325
- random_seed = 43
326
 
327
  X, Y, rf_model, vqgae_model, ordering_model = load_data(batch_size)
328
  assert X.shape == (603, 4096)
 
220
  st.title('Inverse QSAR of Tubulin with VQGAE')
221
 
222
  with st.sidebar:
223
+ st.subheader("Optimisation parameters")
224
  with st.form("ga_options"):
225
  num_generations = st.slider(
226
  'Number of generations for GA',
 
291
  # 2/3 of num_parents_mating
292
  use_ordering_score = st.toggle('Use ordering score', value=False)
293
  batch_size = int(st.number_input("Batch size", value=250, placeholder="Type a number..."))
294
+ random_seed = int(st.number_input("Random seed", value=44, placeholder="Type a number..."))
295
  submit_side = st.form_submit_button('Start optimisation')
296
 
297
  intro_text = '''
 
323
  keep_parents = 60
324
  use_ordering_score = False
325
  batch_size = 250
326
+ random_seed = 44
327
 
328
  X, Y, rf_model, vqgae_model, ordering_model = load_data(batch_size)
329
  assert X.shape == (603, 4096)