jcmachicao
commited on
Commit
•
67f8603
1
Parent(s):
30347d1
Update es_class_nn.py
Browse files- es_class_nn.py +4 -4
es_class_nn.py
CHANGED
@@ -3,16 +3,16 @@ import torch.nn as nn
|
|
3 |
import pandas as pd
|
4 |
import numpy as np
|
5 |
|
6 |
-
DROPOUTX = 0.
|
7 |
|
8 |
class SimplePlusNN2(nn.Module):
|
9 |
def __init__(self, input_size, num_classes):
|
10 |
super(SimplePlusNN2, self).__init__()
|
11 |
-
self.fc1 = nn.Linear(input_size,
|
12 |
self.relu = nn.ReLU()
|
13 |
-
self.fc2 = nn.Linear(
|
14 |
self.relu = nn.ReLU()
|
15 |
-
self.fc3 = nn.Linear(
|
16 |
self.dropout = nn.Dropout(DROPOUTX)
|
17 |
self.sigmoid = nn.Sigmoid()
|
18 |
|
|
|
3 |
import pandas as pd
|
4 |
import numpy as np
|
5 |
|
6 |
+
DROPOUTX = 0.10
|
7 |
|
8 |
class SimplePlusNN2(nn.Module):
|
9 |
def __init__(self, input_size, num_classes):
|
10 |
super(SimplePlusNN2, self).__init__()
|
11 |
+
self.fc1 = nn.Linear(input_size, 128)
|
12 |
self.relu = nn.ReLU()
|
13 |
+
self.fc2 = nn.Linear(128, 32)
|
14 |
self.relu = nn.ReLU()
|
15 |
+
self.fc3 = nn.Linear(32, 1)
|
16 |
self.dropout = nn.Dropout(DROPOUTX)
|
17 |
self.sigmoid = nn.Sigmoid()
|
18 |
|