Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Completed Project #3

wants to merge 1 commit into from

Conversation

hrrs
Copy link

@hrrs hrrs commented Oct 1, 2017

Turning in.

Copy link

@branchwelder branchwelder left a 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:

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))

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)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants