f0a81e2d218aa41b538de5e5cfebcc149f758dc5,examples/rbm_tutorial.py,BinomialRBM,fit,#BinomialRBM#Any#Any#Any#Any#Any#Any#Any#,239
 
Before Change
                epoch_list.append(ep)
           
            // Save fidelities at the end of training.
            if ep == epochs:
                print ("Finished training." )               
                ax = plt.axes()
                ax.plot(epoch_list, fidelity_list, color="blue")
                ax.grid()
                ax.set_xlim(0,epochs)
                ax.set_xlabel("Epochs")
                ax.set_ylabel("Fidelity")
                self.save_params()
                print ("Saved weights and biases.")
                break
            for batch in batches:
                all_grads = self.compute_batch_gradients(k, batch)
                optimizer.zero_grad()  // clear any cached gradients
After Change
                //plt.ylabel("F",fontsize=20)
                plt.xticks(fontsize=20)
                plt.yticks(fontsize=20)
                plt.gca().text(0.95, 0.2, "F = "+"{:.3}".format(fidelity_.item()),
                        verticalalignment="bottom", horizontalalignment="right",
                        color="k", fontsize=20,transform=plt.gca().transAxes)
                //plt.pause(0.05)

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
 Project Name: PIQuIL/QuCumber
 Commit Name: f0a81e2d218aa41b538de5e5cfebcc149f758dc5
 Time: 2018-07-20
 Author: gtorlai@uwaterloo.ca
 File Name: examples/rbm_tutorial.py
 Class Name: BinomialRBM
 Method Name: fit
 Project Name: daavoo/pyntcloud
 Commit Name: 0da94c2fc76a74e701b653f5b76f8066b4305cdc
 Time: 2020-05-13
 Author: marcus.wallbaum@gmail.com
 File Name: pyntcloud/structures/voxelgrid.py
 Class Name: VoxelGrid
 Method Name: plot
 Project Name: dPys/PyNets
 Commit Name: 6d895c6a1f32c982ca3d75929bd0f303a16746d5
 Time: 2018-08-28
 Author: dpisner@utexas.edu
 File Name: pynets/plotting.py
 Class Name: 
 Method Name: plot_conn_mat