2a26887b42ac2d514fc7cd54187402581a054275,ml-agents/mlagents/trainers/tests/test_agent_processor.py,,test_agentprocessor,#Any#,31

Before Change


        stats_reporter=StatsReporter("testcat"),
    )

    fake_action_outputs = {
        "action": ActionTuple(continuous=np.array([[0.1], [0.1]], dtype=np.float32)),
        "entropy": np.array([1.0], dtype=np.float32),
        "learning_rate": 1.0,
        "log_probs": LogProbsTuple(
            continuous=np.array([[0.1], [0.1]], dtype=np.float32)
        ),
    }
    mock_decision_steps, mock_terminal_steps = mb.create_mock_steps(
        num_agents=2,
        observation_specs=create_observation_specs_with_shapes(
            [(8,)] + num_vis_obs * [(84, 84, 3)]

After Change


    assert len(trajectory.steps) == 5
    // Make sure ungrouped agents don"t have team obs
    for step in trajectory.steps:
        assert len(step.group_status) == 0

    // Assert that the AgentProcessor is empty
    assert len(processor._experience_buffers[0]) == 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Unity-Technologies/ml-agents
Commit Name: 2a26887b42ac2d514fc7cd54187402581a054275
Time: 2021-03-04
Author: ervin@unity3d.com
File Name: ml-agents/mlagents/trainers/tests/test_agent_processor.py
Class Name:
Method Name: test_agentprocessor


Project Name: GPflow/GPflow
Commit Name: 49a385eae93032125a6718433b3ca1753aee3b1e
Time: 2017-11-02
Author: art.art.v@gmail.com
File Name: testing/test_method_equivalence.py
Class Name: TestEquivalence
Method Name: test_all


Project Name: deepchem/deepchem
Commit Name: 76891462a36a057fc2355c7f7686649a8184add2
Time: 2020-07-30
Author: nd.12021218@gmail.com
File Name: deepchem/feat/tests/test_graph_data.py
Class Name: TestGraph
Method Name: test_graph_data