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
import numpy as np | |
import pandas as pd | |
from sklearn.preprocessing import StandardScaler | |
# Definir la clase Perceptrón | |
class Perceptron: | |
def __init__(self, input_size, lr=1, epochs=100): | |
self.W = np.zeros(input_size + 1) | |
self.epochs = epochs | |
self.lr = lr |
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
import os | |
import pandas as pd | |
POTENTIAL_TABLE_FIFA = { | |
90: 'Sobresaliente', | |
80: 'Muy bueno', | |
60: 'Bueno', | |
-1: 'Regular' | |
} |
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
Procedure BorrarPos (var rv: regisVector); | |
var | |
i: integer; | |
Begin | |
if (1 <= rv.dimL) then | |
begin | |
for i:= 2 to rv.dimL do | |
rv.v [ i - 1 ] := rv.v [ i ] ; | |
rv.dimL := rv.dimL - 1 ; | |
end; |