ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/845366/root/opt/alt/python27/share/doc/alt-python27-Cython/Demos/benchmarks/ |
Upload File : |
cimport cython
cdef double rand(double a, double b, random=*)
@cython.locals(i=Py_ssize_t)
cdef list makeMatrix(Py_ssize_t I, Py_ssize_t J, fill=*)
cdef class NN:
cdef Py_ssize_t ni, nh, no
cdef list ai, ah, ao
cdef list wi, wo
cdef list ci, co
@cython.locals(i=Py_ssize_t, j=Py_ssize_t, k=Py_ssize_t)
cpdef update(self, list inputs)
@cython.locals(i=Py_ssize_t, j=Py_ssize_t, k=Py_ssize_t, change=double)
cpdef double backPropagate(self, list targets, double N, M)
@cython.locals(i=Py_ssize_t, p=list, error=double)
cpdef train(self, list patterns, Py_ssize_t iterations=*, double N=*, M=*)