mirror of
https://github.com/guezoloic/neural-network.git
synced 2026-01-25 01:34:21 +00:00
fix(network.py): resolve E999 SyntaxError by separating the two strings
This commit is contained in:
@@ -82,7 +82,9 @@ class Neuron:
|
||||
line: str = str.join("", str(self._weight[i: (i + jmp)]))
|
||||
text.append(line)
|
||||
|
||||
return f"weight:\n{str.join("\n", text)}\nbias: {self._bias}"
|
||||
return "weight:\n" + str.join("\n", text) + f"\nbias: {self._bias}"
|
||||
|
||||
Neuron(10)
|
||||
|
||||
# # neuron class
|
||||
# class Neuron:
|
||||
|
||||
Reference in New Issue
Block a user