soumickmj commited on
Commit
a6edcf1
1 Parent(s): d3cfbdc
NdR_female_superheros.py CHANGED
@@ -123,7 +123,7 @@ def run_female_superhero_train():
123
  optimizer = optim.SGD(linear_model.parameters(), lr=0.01, weight_decay=1e-4)
124
 
125
  # Training the Linear Model
126
- num_epochs = 1#00
127
  for epoch in range(num_epochs):
128
  linear_model.train()
129
  outputs = linear_model(X_train_tensor)
 
123
  optimizer = optim.SGD(linear_model.parameters(), lr=0.01, weight_decay=1e-4)
124
 
125
  # Training the Linear Model
126
+ num_epochs = 100
127
  for epoch in range(num_epochs):
128
  linear_model.train()
129
  outputs = linear_model(X_train_tensor)
NdR_male_superheros.py CHANGED
@@ -169,7 +169,7 @@ def run_male_superhero_train():
169
  optimizer = optim.Adam(neural_model.parameters(), lr=0.001, weight_decay=1e-4)
170
 
171
  # Training the Neural Network Model
172
- num_epochs = 2#00
173
  for epoch in range(num_epochs):
174
  neural_model.train()
175
  outputs = neural_model(X_train_tensor)
 
169
  optimizer = optim.Adam(neural_model.parameters(), lr=0.001, weight_decay=1e-4)
170
 
171
  # Training the Neural Network Model
172
+ num_epochs = 200
173
  for epoch in range(num_epochs):
174
  neural_model.train()
175
  outputs = neural_model(X_train_tensor)