1234567891011121314151617181920 |
- # Improve performance of neural network
- from lab import neural
- from copy import copy
- def train(inputNetwork, learnRate, epochs):
- """
- Create an improved network
- inputNetwork : the network to be trained
- epochs : the number of iterations
- return : a trained copy with improved performance
- """
- outputNetwork = copy(inputNetwork)
- # TODO Training
- return outputNetwork
|