print("Predicted output based on the best solution : {prediction}".format(prediction=prediction))
ifga_instance.best_solution_generation!=-1:
print("Best fitness value reached after {best_solution_generation} generations.".format(best_solution_generation=ga_instance.best_solution_generation))
# Saving the GA instance.
filename='genetic'# The filename to which the instance is saved. The name is without extension.