78bcfaa51aa59074492f011a4ff99e93a2b39c2f,test/finance/test_data_providers.py,TestDataProviders,test_exchangedata,#TestDataProviders#,122
Before Change
lse.run()
self.fail("Test of DataOnDemandProvider should have failed due to the lack of a token.")
except QiskitFinanceError:
self.skipTest("Test of DataOnDemandProvider skipped due to the lack of a token.")
if __name__ == "__main__":
unittest.main()
After Change
covariance = np.array(
[[2.693, -18.65],
[-18.65, 1304.422]])
with self.subTest("test ExchangeDataProvider get_covariance_matrix"):
np.testing.assert_array_almost_equal(lse.get_covariance_matrix(),
covariance, decimal=3)
with self.subTest("test ExchangeDataProvider get_similarity_matrix"):
np.testing.assert_array_almost_equal(lse.get_similarity_matrix(),
similarity, decimal=3)
except NameError as ex:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 78bcfaa51aa59074492f011a4ff99e93a2b39c2f
Time: 2020-06-24
Author: manoel@us.ibm.com
File Name: test/finance/test_data_providers.py
Class Name: TestDataProviders
Method Name: test_exchangedata
Project Name: tensorflow/agents
Commit Name: 58c7a5fdb01359ffb2cefcda9350aa65a0907eb5
Time: 2019-05-29
Author: ebrevdo@google.com
File Name: tf_agents/policies/policy_saver_test.py
Class Name: PolicySaverTest
Method Name: testTrainStepSaved
Project Name: Qiskit/qiskit-aqua
Commit Name: 78bcfaa51aa59074492f011a4ff99e93a2b39c2f
Time: 2020-06-24
Author: manoel@us.ibm.com
File Name: test/finance/test_data_providers.py
Class Name: TestDataProviders
Method Name: test_wikipedia
Project Name: tensorflow/agents
Commit Name: 154b81176041071a84b72eb64d419d256dcc947a
Time: 2019-03-08
Author: kbanoop@google.com
File Name: tf_agents/agents/td3/td3_agent_test.py
Class Name: TD3AgentTest
Method Name: testActorLoss