#865 Code Interpreter of TinyGP Application
#865 Code Interpreter of TinyGP Application
#865 Provide the call-tree for the following Python application: "# tiny genetic programming by © moshe sipper, www.moshesipper.com ..."
Here is the call tree for the provided Python program:
main
├── seed
├── init_population
│ ├── GPTree
│ │ ├── random_tree
│ │ │ ├── GPTree (recursion)
│ │ │ │ └── random_tree (recursion)
│ │ │ └── GPTree (recursion)
│ │ │ └── random_tree (recursion)
├── fitness (initial population fitness)
│ └── GPTree.compute_tree
├── for gen in range(GENERATIONS)
│ ├── for i in range(POP_SIZE)
│ │ ├── selection
│ │ │ └── deepcopy
│ │ ├── selection
│ │ │ └── deepcopy
│ │ ├── GPTree.crossover
│ │ │ ├── GPTree.scan_tree
│ │ │ │ └── GPTree.build_subtree (recursion)
│ │ │ └── GPTree.scan_tree (recursion)
│ │ └── GPTree.mutation
│ ├── fitness (new population fitness)
│ │ └── GPTree.compute_tree
│ └── if max(fitnesses) > best_of_run_f
│ ├── deepcopy
│ └── GPTree.print_tree
└── GPTree.print_tree
Comments
Post a Comment