mirror of
https://github.com/guezoloic/neural-network.git
synced 2026-01-25 07:34:23 +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)]))
|
line: str = str.join("", str(self._weight[i: (i + jmp)]))
|
||||||
text.append(line)
|
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
|
# # neuron class
|
||||||
# class Neuron:
|
# class Neuron:
|
||||||
|
|||||||
Reference in New Issue
Block a user