-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completed Project #3
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, remember to remove unused code before submitting your project.
|
||
if min_depth<=1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These conditionals are a bit confusing - you could make them less so by adding an empty line between the separate statements (after lines 30 and 32) and commenting what exactly this portion of the code is doing.
return [possibilites[rand]] | ||
else: | ||
return [possibilites[rand],build_random_function(min_depth-1,max_depth-1)] | ||
#print(build_random_function(3,5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete unused print statements before submitting code.
input_center = (input_interval_end + input_interval_start)/2 | ||
output_center = (output_interval_end + output_interval_start)/2 | ||
scale = abs(output_range / input_range) | ||
# print("input_range ",input_range) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete commented out print statements.
Turning in.