datasciencesage commited on
Commit
9c6fc83
·
verified ·
1 Parent(s): c8abb7f

Update preprocess_test.py

Browse files
Files changed (1) hide show
  1. preprocess_test.py +19 -0
preprocess_test.py CHANGED
@@ -10,6 +10,25 @@ from huggingface_hub import hf_hub_download
10
 
11
 
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  class Preprocess_Test:
14
  def __init__(self,df):
15
 
 
10
 
11
 
12
 
13
+
14
+ class Model(nn.Module):
15
+ def __init__(self, input_shape, num_classes):
16
+ super(Model, self).__init__()
17
+ self.fc1 = nn.Linear(input_shape, 1024)
18
+ self.bn1 = nn.BatchNorm1d(1024)
19
+ self.fc2 = nn.Linear(1024, 512)
20
+ self.bn2 = nn.BatchNorm1d(512)
21
+ self.fc3 = nn.Linear(512, 256)
22
+ self.bn3 = nn.BatchNorm1d(256)
23
+ self.fc4 = nn.Linear(256, num_classes)
24
+
25
+ def forward(self, x):
26
+ x = F.relu(self.bn1(self.fc1(x)))
27
+ x = F.relu(self.bn2(self.fc2(x)))
28
+ x = F.relu(self.bn3(self.fc3(x)))
29
+ x = self.fc4(x)
30
+ return x
31
+
32
  class Preprocess_Test:
33
  def __init__(self,df):
34