In app/algs/neuralnet.py, the compete() and train_alpha() methods should be changed so that they are instance methods. This includes changing the first function parameter to be "self". Simple hotfix required. Additionally, this change needs to be refactored throughout the same file, so that when we're calling the compete and train_alpha functions, we're calling it using self.function_name(params).
In app/algs/neuralnet.py, the compete() and train_alpha() methods should be changed so that they are instance methods. This includes changing the first function parameter to be "self". Simple hotfix required. Additionally, this change needs to be refactored throughout the same file, so that when we're calling the compete and train_alpha functions, we're calling it using self.function_name(params).