Update app.py
Browse files
app.py
CHANGED
@@ -174,6 +174,7 @@ class MyModel(nn.Module):
|
|
174 |
output_feature = self.dropout(self.relu(self.bn2(self.fc2(output_feature))))
|
175 |
output_feature = self.dropout(self.relu(self.bn3(self.fc3(output_feature))))
|
176 |
output_feature = self.dropout(self.output_layer(output_feature))
|
|
|
177 |
return torch.softmax(output_feature,dim=1)
|
178 |
|
179 |
|
@@ -241,7 +242,7 @@ def ACE(file):
|
|
241 |
print("=================================Start prediction========================")
|
242 |
for index, (batch, structure_fea, fingerprint) in enumerate(test_dataloader):
|
243 |
batchs = {k: v for k, v in batch.items()}
|
244 |
-
print(
|
245 |
outputs = model(structure_fea, batchs, fingerprint)
|
246 |
probability = outputs[0].tolist()
|
247 |
print(outputs)
|
|
|
174 |
output_feature = self.dropout(self.relu(self.bn2(self.fc2(output_feature))))
|
175 |
output_feature = self.dropout(self.relu(self.bn3(self.fc3(output_feature))))
|
176 |
output_feature = self.dropout(self.output_layer(output_feature))
|
177 |
+
print(output_feature)
|
178 |
return torch.softmax(output_feature,dim=1)
|
179 |
|
180 |
|
|
|
242 |
print("=================================Start prediction========================")
|
243 |
for index, (batch, structure_fea, fingerprint) in enumerate(test_dataloader):
|
244 |
batchs = {k: v for k, v in batch.items()}
|
245 |
+
print(batchs)
|
246 |
outputs = model(structure_fea, batchs, fingerprint)
|
247 |
probability = outputs[0].tolist()
|
248 |
print(outputs)
|