I wrote code containing a neural network that runs through (part1.py in johanna_NN), but I'm not getting to work as a class (see bagofwords.py in johanna_NN).
My understanding of the problem is that I'm creating an instance of the DNNClassifier class within the NeuralNetworkClassifier class, and apply a NeuralNetworkClassifier method to this instance of DNNClassifier.
I've also described the problem on StackOverflow but did not get any reactions yet (https://stackoverflow.com/questions/49206732/python-using-one-class-inside-another?noredirect=1#comment85418468_49206732).
Any insights?
I wrote code containing a neural network that runs through (part1.py in johanna_NN), but I'm not getting to work as a class (see bagofwords.py in johanna_NN).
My understanding of the problem is that I'm creating an instance of the DNNClassifier class within the NeuralNetworkClassifier class, and apply a NeuralNetworkClassifier method to this instance of DNNClassifier.
I've also described the problem on StackOverflow but did not get any reactions yet (https://stackoverflow.com/questions/49206732/python-using-one-class-inside-another?noredirect=1#comment85418468_49206732).
Any insights?