trainer.py 377 B

1234567891011121314151617181920
  1. # Improve performance of neural network
  2. from lab import neural
  3. from copy import copy
  4. def train(inputNetwork, learnRate, epochs):
  5. """
  6. Create an improved network
  7. inputNetwork : the network to be trained
  8. epochs : the number of iterations
  9. return : a trained copy with improved performance
  10. """
  11. outputNetwork = copy(inputNetwork)
  12. # TODO Training
  13. return outputNetwork