class_docstr: Test classifier on generator.
class_docstr_tok: ["Test","classifier","on","generator","."]
docstr: Test the accuracy of the classifier trained on current utterances only.
  
  The accuracy is low here because the task was labeled using a different
  classifier, zoo:style_gen/prev_curr_classifier/model.
docstr_tok: ["Test","the","accuracy","of","the","classifier","trained","on","current","utterances","only",".","The","accuracy","is","low","here","because","the","task","was","labeled","using","a","different","classifier",",","zoo",":","style_gen\/prev_curr_classifier\/model","."]
code: def test_curr_only_accuracy(self):
      """
      Test the accuracy of the classifier trained on current utterances only.
  
      The accuracy is low here because the task was labeled using a different
      classifier, zoo:style_gen/prev_curr_classifier/model.
      """
      _, test = testing_utils.eval_model(
          opt={
              "batchsize": 4,
              "fp16": True,
              "num_examples": 16,
              "model_file": "zoo:style_gen/curr_only_classifier/model",
              "model": "projects.style_gen.classifier:ClassifierAgent",
              "classes_from_file": "image_chat_personalities_file",
              "task": "style_gen:CurrUttOnlyStyle",
              "wrapper_task": "style_gen:LabeledBlendedSkillTalk",
          },
          skip_valid=True,
      )
      self.assertAlmostEqual(test["accuracy"], 0.4375, delta=0.0)
  
file_path: ParlAI/tests/nightly/gpu/test_style_gen.py
imports: import unittest
  import parlai.utils.testing
  from parlai.core.opt import Opt
label_desc: Use image node_id 3 for calling the TestClassifierOnGenerator obj's underlying member method code with example usage: obj.test_curr_only_accuracy() without return types