def createPrototypes(self, data):
    groups = np.random.randint(0, data.shape[0], size=self.hidden)
    prototypes = np.zeros((self.hidden, data.shape[1]))
    i = 0
    for element in groups:
        prototypes[i] = data[element, :]
        i += 1
    self.protos = prototypes
def createPrototypes(self, data):
    groups = np.random.randint(0, data.shape[0], size=self.hidden)
    prototypes = np.zeros((self.hidden, data.shape[1]))
    i = 0
    for element in groups:
        prototypes[i] = data[element, :]
        i += 1
    self.protos = prototypes