Phone

+919997782184

Email

support@roboticswithpython.com

Geeks of Coding

Join us on Telegram

Viewing 0 reply threads
  • Author
    Posts
    • #1218
      Yash AroraYash Arora
      Keymaster

      Question 1 –
      What cost function can be used for a two class problem.

      Answer:

      nn.CrossEntropyLoss
      nn.BBCELoss()

      Question 2 –
      True or false you can use the following class or custom module to classify more than one class :

      class Net(nn.Module):
          def __init__(self,D_in,H,D_out):
              super(Net,self).__init__()
              self.linear1=nn.Linear(D_in,H)
              self.linear2=nn.Linear(H,D_out)
      
              
          def forward(self,x):
              x=torch.sigmoid(self.linear1(x))  
              x=torch.sigmoid(self.linear2(x))
              return x

      Answer :
      True

Viewing 0 reply threads
  • You must be logged in to reply to this topic.