Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 664 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 664 Bytes

1D-CNN

class OneDCNN(nn.Module):
 def __init__(self, num_classes, in_channels, out_channels, kernel_size=3, stride=1):
   super(OneDCNN,self).__init__()
   self.in_channels = in_channels
   self.out_channels = out_channels
   self.kernel_size = kernel_size
   
   self.conv1d = nn.Conv1d(in_channels, out_channels, kernel_size)
   self.relu = nn.ReLU(inplace=True)
   self.fc1 = nn.Linear(out_channels,50)
   self.fc2 = nn.Linear(50,num_classes)

Area Under Curve

1dcnniris_auc

1DCNN IRIS PyTorch