trevorstephens / gplearn

Genetic Programming in Python, with a scikit-learn inspired API
http://gplearn.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.56k stars 274 forks source link

Bugs with _Program.build_program method #296

Open wfh1300 opened 7 months ago

wfh1300 commented 7 months ago

The code with bug is while terminal_stack: depth = len(terminal_stack) **_// I think the code in this line should be "depth = len(program)"_** choice = self.n_features + len(self.function_set) choice = random_state.randint(choice)