DL CNN Basic Regression

Architecture 1 :


class ConvNet(nn.Module):
    def __init__(self, num_classes=1):
        super(ConvNet, self).__init__()
        self.layer1 = nn.Sequential(
            nn.Conv2d(1, 16,kernel_size=2, stride=1, padding=1),
            nn.BatchNorm2d(16),
            nn.ReLU(),
            nn.MaxPool2d(kernel_size=2, stride=1))
        self.layer2 = nn.Sequential(
            nn.Conv2d(16, 32, kernel_size=2, stride=1, padding=1),
            nn.BatchNorm2d(32),
            nn.ReLU(),
            nn.MaxPool2d(kernel_size=2, stride=1))
        self.fc1 = nn.Linear(64000, 32)
        self.fc2 = nn.Linear(32, 1)

    def forward(self, x):
        out = self.layer1(x)
        #print(out.shape)
        out = self.layer2(out)
        #print(out.shape)
        out = out.reshape(out.size(0), -1)
        #print(out.shape)
        out = self.fc1(out)
        out = self.fc2(out)
        return out

Result :

Testing MAE in epoch 0: 14.1100473404

Testing MAE in epoch 1: 10.9254541397

Testing MAE in epoch 2: 11.0664958954

Testing MAE in epoch 3: 12.2975358963

Testing MAE in epoch 4: 11.705947876

Testing MAE in epoch 5: 16.016740799

1d, 2d , ppg, ecg, ecg1d

Testing MAE in epoch 0: 16.293088913

Testing MAE in epoch 1: 15.7555627823

Testing MAE in epoch 2: 15.0539445877

Testing MAE in epoch 3: 14.9331197739

Testing MAE in epoch 4: 15.4364147186

Testing MAE in epoch 5: 16.0663318634

Testing MAE in epoch 6: 20.8251132965

Testing MAE in epoch 7: 17.1887378693

Testing MAE in epoch 8: 19.0004119873

Testing MAE in epoch 9: 23.7737026215

Testing MAE in epoch 10: 19.2597198486

Testing MAE in epoch 11: 22.4477214813

Testing MAE in epoch 12: 22.8467140198

Testing MAE in epoch 13: 23.8698539734

Testing MAE in epoch 14: 30.3840179443

Testing MAE in epoch 15: 27.7056388855

Testing MAE in epoch 16: 32.1726570129

Testing MAE in epoch 17: 28.3564662933

Testing MAE in epoch 18: 33.4589500427

Testing MAE in epoch 19: 36.0541038513


1d ppg,2d ppg,ppg,ecg

Testing MAE in epoch 0: 18.2435760498

Testing MAE in epoch 1: 18.0854358673

Testing MAE in epoch 2: 20.746389389

Testing MAE in epoch 3: 17.8099918365

Testing MAE in epoch 4: 16.5399646759

Testing MAE in epoch 5: 16.4240570068

Testing MAE in epoch 6: 16.7579402924

Testing MAE in epoch 7: 18.7972831726

Testing MAE in epoch 8: 19.9870376587

1d ppg,ppg,ecg

Testing MAE in epoch 0: 15.6080379486

Testing MAE in epoch 1: 14.3128414154

Testing MAE in epoch 2: 13.9121770859

Testing MAE in epoch 3: 20.9532432556

Testing MAE in epoch 4: 13.8322229385

Testing MAE in epoch 5: 14.0431118011

Testing MAE in epoch 6: 14.9202299118

Testing MAE in epoch 7: 20.2221775055