Hello,
I also implemented the CBOW model as follows:

  
      gist.github.com
  
  
    https://gist.github.com/emirceyani/2ca7d8c3c9a2704d0f1e7f72cfbdac72 184
CBOW.py
import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim

torch.manual_seed(1)

CONTEXT_SIZE = 2  # 2 words to the left, 2 to the right
EMBEDDING_DIM=10
This file has been truncated. show original




  
  
    
    
  
  


Loss is decresing but how much epoch is needed to get the output for the CBOW exercise?