Skip to content

./ex7/submit.py: Error in part 1 #12

Description

@marc-chan

Submission for part 1 (find closest centroids) fail when submitting to grader.

if part_id == 1:
        idx = func(X, C)
        return sprintf('%0.5f ', idx[1]+1)

Instead of returning idx[1]+1, should return idx+1 to pass the grader.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions