Working Version

This commit is contained in:
Pedro Romero 2025-04-02 11:42:14 +02:00
parent 0c99b10651
commit e21c4f72e7

View File

@ -54,9 +54,9 @@ def logica_offset(offset, error, errorObjetivo):
limSup = 1 + errorObjetivo limSup = 1 + errorObjetivo
limInf = 1 - errorObjetivo limInf = 1 - errorObjetivo
if error <= limSup and error >= limInf: return True, None if error <= limSup and error >= limInf: return True, None, None
tasa_aprendizaje = 0.1 tasa_aprendizaje = 1
desviacion = error - 1 desviacion = error - 1
delta = abs(tasa_aprendizaje * np.tanh(desviacion)) delta = abs(tasa_aprendizaje * np.tanh(desviacion))