Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Update learning.py#15

Open
Chong-Jiao wants to merge 1 commit intovicariousinc:masterfrom
Chong-Jiao:patch-1
Open

Update learning.py#15
Chong-Jiao wants to merge 1 commit intovicariousinc:masterfrom
Chong-Jiao:patch-1

Conversation

@Chong-Jiao
Copy link

Maybe you missed a '+' operator when updating total_rounding_error in the line of 161.

if abs(round_up_error) < abs(round_down_error):
graph.edge[n1][n2]['perturb_radius'] = upper
total_rounding_error = round_up_error
total_rounding_error += round_up_error

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why += instead of = ? I think the suggested addition is not necessary, because round_up_error from line 182 already contains total_rounding_error as a summand.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants