menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Elementsofai

Elements of AI is a two part online course about AI and this community is for the participants of the course to discuss. Please join our new community at https://community.elementsofai.com/

Channels
Team

Machine-Learning/working-with-text#17

July 21, 2021 at 4:18pm

Machine-Learning/working-with-text#17

July 21, 2021 at 4:18pm
Hello, I have been doing this exercise. I have the distances between the lines in an array as it says ([[ 0. 1. 0. 1. -6.] [-1. 0. -1. 0. -7.] [ 0. 1. 0. 1. -6.] [-1. 0. -1. 0. -7.] [ 6. 7. 6. 7. 0.]]). But when I execute this line "np.unravel_index(np.argmin(dist), dist.shape))" it returns the two most separated lines and not the most together. What am i doing wrong?
No messages yet