This file contains hidden or 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
| package clustering; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.SecureRandom; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Objects; | |
| import java.util.Random; | |
| import java.util.Set; |
This file contains hidden or 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
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.SortedMap; | |
| import java.util.TreeMap; | |
| import java.util.function.Function; | |
| import java.util.stream.Collectors; | |
| public class KNearestNeighbor { |
This file contains hidden or 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
| public class Perceptron { | |
| private double[] pesos; | |
| private double bias; | |
| public double[] getPesos() { | |
| return this.pesos; | |
| } | |
| public double getBias() { | |
| return this.bias; |
This file contains hidden or 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
| lada | ciudad | estado | |
|---|---|---|---|
| 449 | Aguascalientes | Aguascalientes | |
| 449 | Buenavista de Peñuelas | Aguascalientes | |
| 449 | Comunidad El Rocio | Aguascalientes | |
| 449 | El Refugio de Peñuelas | Aguascalientes | |
| 449 | El Salto de los Salado | Aguascalientes | |
| 449 | El Vergel (Paraíso) | Aguascalientes | |
| 449 | General Ignacio Zaragoza (Venadero) | Aguascalientes | |
| 449 | General José María Morelos y Pavón (Cañada Honda) | Aguascalientes | |
| 449 | Jaltomate | Aguascalientes |