#NEWLINE# def logging_info_about_the_data( network , input_train , input_test ) : #NEWLINE# #INDENT# logs = network . logs #NEWLINE# n_train_samples = input_train . shape [ 0 ] #NEWLINE# train_feature_shape = input_train . shape [ 1 : ] #NEWLINE# logs . title ( 'Start training' ) #NEWLINE# logs . message ( 'TRAIN DATA' , '{} samples, feature shape: {}' . format ( n_train_samples , train_feature_shape ) ) #NEWLINE# if ( input_test is not None ) : #NEWLINE# #INDENT# n_test_samples = input_test . shape [ 0 ] #NEWLINE# test_feature_shape = input_test . shape [ 1 : ] #NEWLINE# logs . message ( 'TEST DATA' , '{} samples, feature shape: {}' . format ( n_test_samples , test_feature_shape ) ) #NEWLINE# if ( train_feature_shape != test_feature_shape ) : #NEWLINE# #INDENT# raise ValueError ( 'Train and test samples should have the same feature shape.' )