Last active
June 16, 2018 21:34
-
-
Save foo0x29a/39335eda8c1d2ebb177e027661a7fadb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k = 1 | |
predicted: [1 1 0 0 0] | |
true: [1 0 0 1 1] | |
confusion matrix: | |
[[1 1] | |
[2 1]] | |
k = 2 | |
predicted: [1 1 0 0 0] | |
true: [1 0 0 1 1] | |
confusion matrix: | |
[[1 1] | |
[2 1]] | |
k = 3 | |
predicted: [1 1 0 0 0] | |
true: [1 0 0 1 1] | |
confusion matrix: | |
[[1 1] | |
[2 1]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k: 3 | |
instancia: [20 0 0 1 1 0] | |
distancias ordenadas: (1.4142135623730951, 1.7320508075688772, 1.7320508075688772, 2.0, 3.3166247903554, 4.47213595499958, 5.0, 8.12403840463596, 9.1104335791443, 10.198039027185569, 15.066519173319364, 18.05547008526779, 20.09975124224178) | |
k primeiras classes: (1, 0, 1) | |
classe selecionada: 1 | |
instancia: [22 0 1 0 1 0] | |
distancias ordenadas: (1.7320508075688772, 2.0, 2.449489742783178, 2.8284271247461903, 3.0, 3.3166247903554, 3.605551275463989, 6.324555320336759, 7.280109889280518, 8.12403840463596, 13.152946437965905, 16.0, 18.110770276274835) | |
k primeiras classes: (1, 1, 0) | |
classe selecionada: 1 | |
instancia: [30 0 1 0 0 1] | |
distancias ordenadas: (0.0, 1.7320508075688772, 2.449489742783178, 5.196152422706632, 5.385164807134504, 6.0, 7.280109889280518, 8.12403840463596, 10.099504938362077, 10.099504938362077, 10.099504938362077, 11.090536506409418, 11.090536506409418) | |
k primeiras classes: (0, 0, 1) | |
classe selecionada: 0 | |
instancia: [31 0 0 1 0 1] | |
distancias ordenadas: (1.7320508075688772, 2.0, 3.0, 4.0, 6.164414002968976, 7.14142842854285, 7.280109889280518, 8.246211251235321, 9.1104335791443, 11.090536506409418, 11.180339887498949, 12.0, 12.165525060596439) | |
k primeiras classes: (0, 0, 1) | |
classe selecionada: 0 | |
instancia: [29 1 0 0 0 1] | |
distancias ordenadas: (1.4142135623730951, 1.7320508075688772, 1.7320508075688772, 4.47213595499958, 5.196152422706632, 6.164414002968976, 6.164414002968976, 9.0, 9.219544457292887, 9.219544457292887, 10.099504938362077, 10.198039027185569, 11.0) | |
k primeiras classes: (0, 0, 1) | |
classe selecionada: 0 | |
resultado da classificacao: | |
[1, 1, 0, 0, 0] | |
labels originais: | |
[1, 0, 0, 1, 1] | |
k: 2 | |
instancia: [20 0 0 1 1 0] | |
distancias ordenadas: (1.4142135623730951, 1.7320508075688772, 1.7320508075688772, 2.0, 3.3166247903554, 4.47213595499958, 5.0, 8.12403840463596, 9.1104335791443, 10.198039027185569, 15.066519173319364, 18.05547008526779, 20.09975124224178) | |
k primeiras classes: (1, 0) | |
classe selecionada: 1 | |
instancia: [22 0 1 0 1 0] | |
distancias ordenadas: (1.7320508075688772, 2.0, 2.449489742783178, 2.8284271247461903, 3.0, 3.3166247903554, 3.605551275463989, 6.324555320336759, 7.280109889280518, 8.12403840463596, 13.152946437965905, 16.0, 18.110770276274835) | |
k primeiras classes: (1, 1) | |
classe selecionada: 1 | |
instancia: [30 0 1 0 0 1] | |
distancias ordenadas: (0.0, 1.7320508075688772, 2.449489742783178, 5.196152422706632, 5.385164807134504, 6.0, 7.280109889280518, 8.12403840463596, 10.099504938362077, 10.099504938362077, 10.099504938362077, 11.090536506409418, 11.090536506409418) | |
k primeiras classes: (0, 0) | |
classe selecionada: 0 | |
instancia: [31 0 0 1 0 1] | |
distancias ordenadas: (1.7320508075688772, 2.0, 3.0, 4.0, 6.164414002968976, 7.14142842854285, 7.280109889280518, 8.246211251235321, 9.1104335791443, 11.090536506409418, 11.180339887498949, 12.0, 12.165525060596439) | |
k primeiras classes: (0, 0) | |
classe selecionada: 0 | |
instancia: [29 1 0 0 0 1] | |
distancias ordenadas: (1.4142135623730951, 1.7320508075688772, 1.7320508075688772, 4.47213595499958, 5.196152422706632, 6.164414002968976, 6.164414002968976, 9.0, 9.219544457292887, 9.219544457292887, 10.099504938362077, 10.198039027185569, 11.0) | |
k primeiras classes: (0, 0) | |
classe selecionada: 0 | |
resultado da classificacao: | |
[1, 1, 0, 0, 0] | |
labels originais: | |
[1, 0, 0, 1, 1] | |
k: 1 | |
instancia: [20 0 0 1 1 0] | |
distancias ordenadas: (1.4142135623730951, 1.7320508075688772, 1.7320508075688772, 2.0, 3.3166247903554, 4.47213595499958, 5.0, 8.12403840463596, 9.1104335791443, 10.198039027185569, 15.066519173319364, 18.05547008526779, 20.09975124224178) | |
k primeiras classes: (1,) | |
classe selecionada: 1 | |
instancia: [22 0 1 0 1 0] | |
distancias ordenadas: (1.7320508075688772, 2.0, 2.449489742783178, 2.8284271247461903, 3.0, 3.3166247903554, 3.605551275463989, 6.324555320336759, 7.280109889280518, 8.12403840463596, 13.152946437965905, 16.0, 18.110770276274835) | |
k primeiras classes: (1,) | |
classe selecionada: 1 | |
instancia: [30 0 1 0 0 1] | |
distancias ordenadas: (0.0, 1.7320508075688772, 2.449489742783178, 5.196152422706632, 5.385164807134504, 6.0, 7.280109889280518, 8.12403840463596, 10.099504938362077, 10.099504938362077, 10.099504938362077, 11.090536506409418, 11.090536506409418) | |
k primeiras classes: (0,) | |
classe selecionada: 0 | |
instancia: [31 0 0 1 0 1] | |
distancias ordenadas: (1.7320508075688772, 2.0, 3.0, 4.0, 6.164414002968976, 7.14142842854285, 7.280109889280518, 8.246211251235321, 9.1104335791443, 11.090536506409418, 11.180339887498949, 12.0, 12.165525060596439) | |
k primeiras classes: (0,) | |
classe selecionada: 0 | |
instancia: [29 1 0 0 0 1] | |
distancias ordenadas: (1.4142135623730951, 1.7320508075688772, 1.7320508075688772, 4.47213595499958, 5.196152422706632, 6.164414002968976, 6.164414002968976, 9.0, 9.219544457292887, 9.219544457292887, 10.099504938362077, 10.198039027185569, 11.0) | |
k primeiras classes: (0,) | |
classe selecionada: 0 | |
resultado da classificacao: | |
[1, 1, 0, 0, 0] | |
labels originais: | |
[1, 0, 0, 1, 1] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment