37f58cc580da8735ae5a259d4cb4ba0b8701e78e,tests/test_pytorch_data_teacher.py,TestPytorchDataTeacher,test_pyt_preprocess,#TestPytorchDataTeacher#,88
Before Change
return agent.observe(act), agent
print("Testing test_pyt_preprocess action equivalent to observation")
ff = io.StringIO()
with redirect_stdout(ff):
defaults = parser_defaults.copy()
defaults["batch_size"] = 1
defaults["datatype"] = "train:stream:ordered"
After Change
defaults["datatype"] = "train:stream:ordered"
// Get processed act from agent
defaults["model_file"] = os.path.join(tmpdir, "model")
defaults["dict_file"] = os.path.join(tmpdir, "model.dict")
agent_processed_observation, agent1 = get_teacher_act(defaults)
// Get preprocessed act from teacher
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/ParlAI
Commit Name: 37f58cc580da8735ae5a259d4cb4ba0b8701e78e
Time: 2019-02-08
Author: roller@fb.com
File Name: tests/test_pytorch_data_teacher.py
Class Name: TestPytorchDataTeacher
Method Name: test_pyt_preprocess
Project Name: facebookresearch/ParlAI
Commit Name: 37f58cc580da8735ae5a259d4cb4ba0b8701e78e
Time: 2019-02-08
Author: roller@fb.com
File Name: tests/test_pytorch_data_teacher.py
Class Name: TestPytorchDataTeacher
Method Name: test_valid_pyt_batchsort
Project Name: biocore/scikit-bio
Commit Name: 8b59737afbb277ee3bf52bec79f4fc7c5a086642
Time: 2015-06-25
Author: ebolyen@gmail.com
File Name: skbio/tree/_tree.py
Class Name: TreeNode
Method Name: __str__