AlexBryan
(Alex Bryan)
1
Code:
inputs = [1,2,3,2.5]
weights1 = [0.2,0.8,-0.5,1.0]
weights2 = [0.5,-0.91,0.26,-0.5]
weights3 = [-0.26,-0.27,0.17,0.87]
bias1 = 2
bias2 = 3
bias3 = 0.5
output = [inputs[0]*weights1[0] + inputs[1]*weights1[1] + inputs[2]*weights1[2] + inputs[3]*weights1[3] +
inputs[0]*weights2[0] + inputs[1]*weights2[1] + inputs[2]*weights2[2] + inputs[3]*weights2[3] +
inputs[0]*weights3[0] + inputs[1]*weights3[1] + inputs[2]*weights3[2] + inputs[3]*weights3[3]]
print(output)
Error:
[WinError 2] The system cannot find the file specified
[cmd: [‘py’, ‘-u’, ‘C:\Users\User\test.py’]]
[dir: C:\Users\User]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR;C:\Users\User\AppData\Local\Microsoft\WindowsApps;]
[Finished]```
I see you tried to use pre-formmated text styling, but it looks like you have something that converted to using smart-quotes.
You can edit your post so that it use 3 back-quotes like this:
```
code goes here
```
MRAB
(Matthew Barnett)
4
You have 'C:\Users\User\test.py'
, but in a plain string literal like that, '\t'
is interpreted as a tab character.
Use a raw string literal instead: r'C:\Users\User\test.py'
.
AlexBryan
(Alex Bryan)
5
how would i do that in sublime?
AlexBryan
(Alex Bryan)
6
ok i changed the name of the file to learning.py so the issue wouldn’t arise, and I get the same error
[WinError 2] The system cannot find the file specified
[cmd: [‘py’, ‘-u’, ‘C:\Users\User\learning.py’]]
[dir: C:\Users\User]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR;C:\Users\User\AppData\Local\Microsoft\WindowsApps;]
[Finished]
MRAB
(Matthew Barnett)
7
\U
is also an escape sequence.
Either double the backslashes or use a raw string literal.