72be833ac2cd72fcd4af44fbb1cc89f31a404275,Orange/tests/test_instance.py,TestInstance,test_init_inst,#TestInstance#,174
Before Change
assert_array_equal(inst2._metas, np.array([0, 43, "Foo"], dtype=object))
domain2 = self.create_domain(["z",
DiscreteVariable.make("g", values="MF"),
self.metas[1]],
[DiscreteVariable.make("y", values="ABC")],
[self.metas[0], "w", domain[0]])
After Change
self.assertEqual(inst2._y[0], 1)
assert_array_equal(inst2._metas, np.array([0, 43, "Foo"], dtype=object))
domain2 = self.create_domain(["z", domain[1], self.metas[1]],
domain.class_vars,
[self.metas[0], "w", domain[0]])
inst2 = Instance(domain2, inst)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: biolab/orange3
Commit Name: 72be833ac2cd72fcd4af44fbb1cc89f31a404275
Time: 2014-12-28
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/tests/test_instance.py
Class Name: TestInstance
Method Name: test_init_inst
Project Name: openai/gym
Commit Name: fd5314780de9eef2b3a6d489dab2119e5b66a6fc
Time: 2019-08-23
Author: peterzhokhoff@gmail.com
File Name: gym/wrappers/test_atari_preprocessing.py
Class Name:
Method Name: test_atari_preprocessing
Project Name: openai/gym
Commit Name: 3b19acdfce7a5812549c6dad1ebf4783593f3374
Time: 2016-05-03
Author: omgtech@gmail.com
File Name: examples/agents/random_agent.py
Class Name:
Method Name: