def show_bias(self): if len(self.weights) is 1: mp = MyPlot() mp.set_labels('Step', 'Bias') mp.show_list(self.biases) else: print('Cannot show the bias! Call print_bias mehtod.')
def show_weight(self): print('shape=', self.weights) if len(self.weights[0]) is 1: mp = MyPlot() mp.set_labels('Step', 'Weight') mp.show_list(self.weights) else: print('Cannot show the weight! Call print_weight method.')
def show_error(self): mp = MyPlot() mp.set_labels('Step', 'Error') mp.show_list(self.costs)
def show_error(self): from lib.myplot import MyPlot mp = MyPlot() mp.set_labels('Step', 'Error') mp.show_list(self.errors)