3dc40701a4b4b0fbb23b191ad996412072251be5,tests/tpot_tests.py,,test_mutNodeReplacement_2,#,1766
Before Change
if isinstance(node, gp.Primitive):
Primitive_Count += 1
assert Primitive_Count == 4
diff_prims = list(set(new_prims_list).symmetric_difference(old_prims_list))
if len(diff_prims) > 1: // Sometimes mutation randomly replaces an operator that already in the pipelines
assert diff_prims[0].ret == diff_prims[1].ret
assert mut_ind[0][0].ret == Output_Array
After Change
if isinstance(node, gp.Primitive):
Primitive_Count += 1
assert Primitive_Count == 4
diff_prims = [x for x in new_prims_list if x not in old_prims_list]
diff_prims += [x for x in old_prims_list if x not in new_prims_list]
if len(diff_prims) > 1: // Sometimes mutation randomly replaces an operator that already in the pipelines
assert diff_prims[0].ret == diff_prims[1].ret
assert mut_ind[0][0].ret == Output_Array
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 12
Instances
Project Name: EpistasisLab/tpot
Commit Name: 3dc40701a4b4b0fbb23b191ad996412072251be5
Time: 2017-11-15
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_mutNodeReplacement_2
Project Name: EpistasisLab/tpot
Commit Name: eaf4c400b8ce7c952b06525e845fbaa40c0c1d22
Time: 2017-11-14
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_mutNodeReplacement_2
Project Name: EpistasisLab/tpot
Commit Name: eaf4c400b8ce7c952b06525e845fbaa40c0c1d22
Time: 2017-11-14
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_mutNodeReplacement
Project Name: EpistasisLab/tpot
Commit Name: 3dc40701a4b4b0fbb23b191ad996412072251be5
Time: 2017-11-15
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_mutNodeReplacement