f0b9197cb921772eff9174de6c566e8b9cac72ff,tpot/export_utils.py,,expr_to_tree,#Any#,52
Before Change
pipeline_tree.append([node.name] + primitive_args)
// Skip past the primitive"s args
[next(iterable) for x in range(arity)]
else:
pipeline_tree.append(node.value)
After Change
stack = []
for node in ind:
stack.append((node, []))
while len(stack[-1][1]) == stack[-1][0].arity:
prim, args = stack.pop()
tree = prim_to_list(prim, args)
if len(stack) == 0:
break // If stack is empty, all nodes should have been seen
stack[-1][1].append(tree)
return tree
def generate_import_code(pipeline):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: EpistasisLab/tpot
Commit Name: f0b9197cb921772eff9174de6c566e8b9cac72ff
Time: 2016-08-19
Author: supacoofoo@gmail.com
File Name: tpot/export_utils.py
Class Name:
Method Name: expr_to_tree
Project Name: ntucllab/libact
Commit Name: 325fae8fbbc16b3c1ca40559bb2a9c783efaf440
Time: 2015-11-25
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: ActiveLearningByLearning
Method Name: make_query
Project Name: senarvi/theanolm
Commit Name: ba08776c069c1e1554afd73368c1b42b0c0c621d
Time: 2015-09-23
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/theanolm-train.py
Class Name:
Method Name: train