"blue") Support.colored_print( "model output 1: " + str(real_output_production_1) + " expected: " + str(expected_output_1), "green") Support.colored_print( "model output 2: " + str(real_output_production_2) + " expected: " + str(expected_output_2), "green") Support.colored_print( "model output 3: " + str(real_output_production_3) + " expected: " + str(expected_output_3), "green") Support.colored_print( "model output 4: " + str(real_output_production_4) + " expected: " + str(expected_output_4), "green") #Support.colored_print("model output 5: " + str(real_output_production_5) + " expected: " + str(expected_output_5), "green") relative_error_production_1 = Support.calculate_relative_error( real_output_production_1, expected_output_1) relative_error_production_2 = Support.calculate_relative_error( real_output_production_2, expected_output_2) relative_error_production_3 = Support.calculate_relative_error( real_output_production_3, expected_output_3) relative_error_production_4 = Support.calculate_relative_error( real_output_production_4, expected_output_4) #relative_error_production_5 = Support.calculate_relative_error(real_output_production_5, expected_output_5) for current_input in range(0, len(input_wp[sample_selected])): file_output_production_1.write( "%f " % input_wp[sample_selected][current_input]) #qui file_output_production_3.write( "%f " % input_wp[sample_selected][current_input]) file_output_production_4.write( "%f " % input_wp[sample_selected][current_input])
real_output_production_1 = model_production_1.predict(input_rf[sample_selected].reshape(1, -1)) real_output_production_2 = model_production_2.predict(input_wpwl[sample_selected].reshape(1, -1)) real_output_production_3 = model_production_3.predict(input_wpwl[sample_selected].reshape(1, -1)) real_output_production_4 = model_production_4.predict(input_rf[sample_selected].reshape(1, -1)) #real_output_production_5 = model_production_5.predict(input_rf[sample_selected].reshape(1, -1)) if detailed_verbose != 0: Support.colored_print("-------------------------------------------", "blue") Support.colored_print("model output 0: " + str(real_output_production_0) + " expected: " + str(expected_output_0), "green") Support.colored_print("model output 1: " + str(real_output_production_1) + " expected: " + str(expected_output_1), "green") Support.colored_print("model output 2: " + str(real_output_production_2) + " expected: " + str(expected_output_2), "green") Support.colored_print("model output 3: " + str(real_output_production_3) + " expected: " + str(expected_output_3), "green") Support.colored_print("model output 4: " + str(real_output_production_4) + " expected: " + str(expected_output_4), "green") #Support.colored_print("model output 5: " + str(real_output_production_5) + " expected: " + str(expected_output_5), "green") relative_error_production_0 = Support.calculate_relative_error(real_output_production_0, expected_output_0) relative_error_production_1 = Support.calculate_relative_error(real_output_production_1, expected_output_1) relative_error_production_2 = Support.calculate_relative_error(real_output_production_2, expected_output_2) relative_error_production_3 = Support.calculate_relative_error(real_output_production_3, expected_output_3) relative_error_production_4 = Support.calculate_relative_error(real_output_production_4, expected_output_4) #relative_error_production_5 = Support.calculate_relative_error(real_output_production_5, expected_output_5) for current_input in range(0, len(input_rf[sample_selected])): file_output_production_0.write("%f " % input_wpwl[sample_selected][current_input]) # qui file_output_production_1.write("%f " % input_rf[sample_selected][current_input]) #qui file_output_production_4.write("%f " % input_rf[sample_selected][current_input]) #file_output_production_5.write("%f " % input_rf[sample_selected][current_input]) for current_input in range(0, len(input_wpwl[sample_selected])): file_output_production_2.write("%f " % input_wpwl[sample_selected][current_input]) file_output_production_3.write("%f " % input_wpwl[sample_selected][current_input])