Download model.py from Deepnar/ice-v2-classifier: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/Deepnar/ice-v2-classifier/resolve/main/model.py
- Command line
-
hf download hf://Deepnar/ice-v2-classifier/model.py
-
curl -L -o model.py https://huggingface.co/Deepnar/ice-v2-classifier/resolve/main/model.py
455 Bytes
| # src/classifier/model.py | |
| import torch | |
| import torch.nn as nn | |
| class ICEClassifier(nn.Module): | |
| def __init__(self): | |
| super(ICEClassifier, self).__init__() | |
| self.fc1 = nn.Linear(384, 128) | |
| self.relu = nn.ReLU() | |
| self.dropout = nn.Dropout(0.3) | |
| self.fc2 = nn.Linear(128, 25) | |
| def forward(self, x): | |
| x = self.fc1(x) | |
| x = self.relu(x) | |
| x = self.dropout(x) | |
| x = self.fc2(x) | |
| return x |