dataset = veri(
    csv_file="f111.csv",
    root_dir=r"C:\Users\yasar\Desktop\f1_classification",
    transform=torchvision.transforms.Compose([transforms.ToTensor(),
                                              transforms.Resize(size=(28*28)),
                                             transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]))```


train_set, test_set = torch.utils.data.random_split(dataset, [200, 79])
train_loader = DataLoader(dataset=train_set, batch_size=1, shuffle=True)
test_loader = DataLoader(dataset=test_set, batch_size=1, shuffle=True)```
class Net(nn.Module):
    def __init__(self):
        super(Net,self).__init__()
        
        self.conv1=nn.Conv2d(in_channels=3,out_channels=4,kernel_size=(5,5))
        self.conv2=nn.Conv2d(in_channels=4,out_channels=8,kernel_size=(3,3))
        self.conv3=nn.Conv2d(in_channels=8,out_channels=16,kernel_size=(2,2))
        #self.conv4=nn.Conv2d(in_channels=32,out_channels=64,kernel_size=(3,3))
        #self.conv5=nn.Conv2d(in_channels=64,out_channels=128,kernel_size=(5,5))

        self.max=nn.MaxPool2d(kernel_size=(2,2))
        self.func=nn.ReLU()
        self.out=nn.Sigmoid()
        
        self.fc1=nn.Linear(in_features=16*28*28,out_features=30)
        self.fc2=nn.Linear(in_features=30,out_features=30)
        self.fc3=nn.Linear(in_features=30,out_features=4)
        #self.fc4=nn.Linear(in_features=200,out_features=200)
        #self.fc5=nn.Linear(in_features=200,out_features=200)
        #self.fc6=nn.Linear(in_features=200,out_features=4)
        
        
    def forward(self,x):
        
        x=self.conv1(x)
        x=self.func(x)
        
        x=self.max(x)
        
        x=self.conv2(x)
        x=self.func(x)
        
        x=self.max(x)
        
        x=self.conv3(x)
        x=self.func(x)

        #x=self.max(x)
        
        #x=self.conv4(x)
        #x=self.func(x)

        #x = x.view(x.size(0),16*4*4) 
        x=x.view(x.size(0), -1)
        x=self.fc1(x)
        x=self.func(x)
        x=self.fc2(x)
        x=self.func(x)
        x=self.fc3(x)
        #x=self.fc4(x)
        #x=self.fc5(x)
        #x=self.fc6(x)
        
        return x        ```


device=torch.device(“cuda”)
model=Net()
optimizer=torch.optim.Adam(model.parameters(),lr=0.01)
error=torch.nn.CrossEntropyLoss()
epoch=1
for i in range(epoch):
for i,(images,label) in enumerate(train_loader):
    #images=images.to(device)
    #label=label.to(device)
    
    out=model(images)
    
    optimizer.zero_grad()
    
    loss=error(out,label)
    
    loss.backward()
    
    optimizer.step()    ```

can you help me please