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

Assignment 6 #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

TeaganMars
Copy link

I'm getting an error on the last part, where i'm editing my average nearest neighbor to read the new format. I posted just now in blackboard.



def euclidean_distance(a, b):
distance = math.sqrt((a[0] - b[0])**2 + (a[1] - b[1])**2)
Copy link
Contributor

Choose a reason for hiding this comment

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

a[0] is positional access. You need attribute access, a.x.

@jlaura
Copy link
Contributor

jlaura commented Apr 17, 2016

@TeaganMars If you update the PR I can regrade.

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