mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:31:29 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -153,6 +153,7 @@ class BPNN:
|
||||
if mse < self.accuracy:
|
||||
print("----达到精度----")
|
||||
return mse
|
||||
return None
|
||||
|
||||
def cal_loss(self, ydata, ydata_):
|
||||
self.loss = np.sum(np.power((ydata - ydata_), 2))
|
||||
|
Reference in New Issue
Block a user