Quantum Machine Learning, Machine Learning, Data Science, Programming, Hands On Tutorials.
process def callback_graph(weights, obj_func_eval): """Updates and saves a plot of the objective function value after each iteration.""" objective_func_vals.append(obj_func_eval) plt.title("Objective function value against iteration") plt.xlabel("Iteration") plt.ylabel("Objective function value")