Open Mourgolikos opened 8 years ago
i am waiting for feedback! :P
Oh! I see a loop-party! :D
Oh... come on, one-letter variable names? nevermind... Challenge accepted! :P
numpy version with no loops uploaded! Really slow though..
you may use multiple threads in order to create each network in it's own thread. An impressive increase in execution speed expected.
Tip:
from multiprocessing.dummy import Pool
#make the Pool of workers
pool = Pool(2) # Threads count
networkCollection = pool.map(functionName, variables)
# some magic here
pool.close()
pool.join()
I am sure you got the idea ;)
Furthermore on the previous version without numpy (backpropagation.py), if i understand correctly, you are doing some operations, between 2D and 1D lists, in such a way that the function
zip()
info about the zip() comes in handy. ;)
:dancers: :dancers: :dancers: :dancers: :dancers: :lollipop: