From 0e0e75db194ed335791a84244d82bf9b85e934b6 Mon Sep 17 00:00:00 2001 From: Stephen Lee <245885195@qq.com> Date: Fri, 22 Sep 2017 11:25:26 +0800 Subject: [PATCH] improve --- Neural_Network/neuralnetwork_bp3.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Neural_Network/neuralnetwork_bp3.py b/Neural_Network/neuralnetwork_bp3.py index 23ce7395e..896411a5d 100644 --- a/Neural_Network/neuralnetwork_bp3.py +++ b/Neural_Network/neuralnetwork_bp3.py @@ -49,9 +49,9 @@ class Bpnn(): ''' data_train = np.asarray(data_train) data_teach = np.asarray(data_teach) - print('-------------------Start Training-------------------------') - print(' - - Shape: Train_Data ',np.shape(data_train)) - print(' - - Shape: Teach_Data ',np.shape(data_teach)) + # print('-------------------Start Training-------------------------') + # print(' - - Shape: Train_Data ',np.shape(data_train)) + # print(' - - Shape: Teach_Data ',np.shape(data_teach)) rp = 0 all_mse = [] mse = 10000 @@ -95,9 +95,9 @@ class Bpnn(): plt.ylabel('All_mse') plt.grid(True,alpha = 0.7) plt.show() - print('------------------Training Complished---------------------') - print(' - - Training epoch: ', rp, ' - - Mse: %.6f'%mse) - print(' - - Last Output: ', final_out3) + # print('------------------Training Complished---------------------') + # print(' - - Training epoch: ', rp, ' - - Mse: %.6f'%mse) + # print(' - - Last Output: ', final_out3) if draw_e: draw_error() @@ -108,9 +108,9 @@ class Bpnn(): ''' data_test = np.asarray(data_test) produce_out = [] - print('-------------------Start Testing-------------------------') - print(' - - Shape: Test_Data ',np.shape(data_test)) - print(np.shape(data_test)) + # print('-------------------Start Testing-------------------------') + # print(' - - Shape: Test_Data ',np.shape(data_test)) + # print(np.shape(data_test)) for g in range(np.shape(data_test)[0]): net_i = data_test[g]