soarhigh commited on
Commit
499d6ed
1 Parent(s): db77b8b

update regressor structure

Browse files
Files changed (1) hide show
  1. regressor.py +3 -0
regressor.py CHANGED
@@ -6,10 +6,13 @@ class WRegressor(nn.Module):
6
  self.linear_relu_stack = nn.Sequential(
7
  nn.Linear(768, 256),
8
  nn.ReLU(),
 
9
  nn.Linear(256, 64),
10
  nn.ReLU(),
 
11
  nn.Linear(64, 16),
12
  nn.ReLU(),
 
13
  nn.Linear(16, 1),
14
  )
15
  return
 
6
  self.linear_relu_stack = nn.Sequential(
7
  nn.Linear(768, 256),
8
  nn.ReLU(),
9
+ nn.Dropout(),
10
  nn.Linear(256, 64),
11
  nn.ReLU(),
12
+ nn.Dropout(),
13
  nn.Linear(64, 16),
14
  nn.ReLU(),
15
+ nn.Dropout(),
16
  nn.Linear(16, 1),
17
  )
18
  return