21b74e0a0d37820cbe9a504b4ab8b458b62d1cbc,tests/nightly/gpu/test_self_feeding.py,TestSelffeeding,test_dataset_integrity,#TestSelffeeding#,19

Before Change


        
        Check the controllble dialogue data loads.
        
        train_output, valid_output, test_output = testing_utils.display_data(
            {"task": "self_feeding:all"}
        )

        // check valid data
        self.assertIn("i am spending time with my 4 sisters", train_output)
        self.assertIn("193777 episodes with a total of 193777 examples", train_output)

After Change


        
        Check the controllable dialogue data loads.
        
        pp = ParlaiParser(True, False)
        opt = pp.parse_kwargs(task="self_feeding:all", datatype="train:ordered")
        teacher = AllTeacher(opt)
        assert teacher.num_examples() == 193777
        assert teacher.num_episodes() == 193777
        assert "some cheetah chasing to stay in shape" in teacher.act()["text"]

        opt["datatype"] = "valid"
        teacher = AllTeacher(opt)
        assert teacher.num_examples() == 3500

        opt["datatype"] = "test"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 21b74e0a0d37820cbe9a504b4ab8b458b62d1cbc
Time: 2020-06-09
Author: roller@fb.com
File Name: tests/nightly/gpu/test_self_feeding.py
Class Name: TestSelffeeding
Method Name: test_dataset_integrity


Project Name: facebookresearch/ParlAI
Commit Name: 21b74e0a0d37820cbe9a504b4ab8b458b62d1cbc
Time: 2020-06-09
Author: roller@fb.com
File Name: tests/nightly/gpu/test_controllable.py
Class Name: TestControllableDialogue
Method Name: test_dataset_integrity


Project Name: facebookresearch/ParlAI
Commit Name: 37f58cc580da8735ae5a259d4cb4ba0b8701e78e
Time: 2019-02-08
Author: roller@fb.com
File Name: tests/test_display_data.py
Class Name: TestDisplayData
Method Name: test_output