Sephfox commited on
Commit
0f22cb5
1 Parent(s): 4d28102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -62,9 +62,9 @@ class GeneticAlgorithm:
62
  def mutation(self):
63
  for net in self.population:
64
  if random.random() < 0.1:
65
- weights = net.get_weights()
66
- new_weights = [np.array(w) + np.random.randn(*w.shape) * 0.1 for w in weights]
67
- net.set_weights(new_weights)
68
 
69
  # Streamlit app
70
  st.title("Evolution of Sub-Models")
 
62
  def mutation(self):
63
  for net in self.population:
64
  if random.random() < 0.1:
65
+ weights = net.get_weights()
66
+ new_weights = [np.array(w) + np.random.randn(*w.shape) * 0.1 for w in weights]
67
+ net.set_weights(new_weights)
68
 
69
  # Streamlit app
70
  st.title("Evolution of Sub-Models")