class_docstr: Checks that seq2seq can learn some very basic tasks.
class_docstr_tok: ["Checks","that","seq2seq","can","learn","some","very","basic","tasks","."]
docstr: This test uses a single-turn task, so doesn't test memories.
docstr_tok: ["This","test","uses","a","single-turn","task",",","so","does","n't","test","memories","."]
code: def test_labelcands_nomemnn(self):
      """
      This test uses a single-turn task, so doesn't test memories.
      """
  
      valid, test = testing_utils.train_model(
          dict(
              task="integration_tests:overfit",
              model="memnn",
              optimizer="sgd",
              lr=1,
              momentum=0.9,
              batchsize=4,
              num_epochs=100,
              validation_every_n_epochs=1,
              embedding_size=32,
              gradient_clip=1.0,
              hops=1,
              position_encoding=True,
              time_features=False,
              memsize=0,
              rank_candidates=True,
          )
      )
  
      self.assertGreater(valid["hits@1"], 0.95)
      self.assertGreater(test["hits@1"], 0.95)
  
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestMemnn obj's underlying member method code with example usage: obj.test_labelcands_nomemnn() without return types