b7cfb4b33525cf3b41b7142521db253feed12269,autoencoder/testing/visualize.py,,plot_info_retrieval,#,268

Before Change


    new_x = interpolate.interp1d(ticks, range(len(ticks)))(ticks)

    i = 0
    for model_name, val in precisions.iteritems():
        fr, pr = zip(*val)
        plt.plot(new_x, pr, linestyle="-", alpha=0.6, marker=markers[i],
                        markersize=6, label=model_name)

After Change


def plot_info_retrieval(precisions, save_file):
    // markers = ["|", "D", "8", "v", "^", ">", "h", "H", "s", "*", "p", "d", "<"]
    markers = ["D", "p", "*", "s", "d", "8", "^", "H", "v", ">", "<", "h", "|"]
    ticks = zip(*zip(*precisions)[1][0])[0]
    plt.xticks(range(len(ticks)), ticks)
    new_x = interpolate.interp1d(ticks, range(len(ticks)))(ticks)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: hugochan/KATE
Commit Name: b7cfb4b33525cf3b41b7142521db253feed12269
Time: 2017-03-29
Author: hugochan2013@gmail.com
File Name: autoencoder/testing/visualize.py
Class Name:
Method Name: plot_info_retrieval


Project Name: hugochan/KATE
Commit Name: b7cfb4b33525cf3b41b7142521db253feed12269
Time: 2017-03-29
Author: hugochan2013@gmail.com
File Name: autoencoder/testing/visualize.py
Class Name:
Method Name: plot_info_retrieval_by_length


Project Name: hugochan/KATE
Commit Name: 61f3ec9289cf3990de2ccc0991130e4fdc1e90c0
Time: 2017-02-09
Author: hugochan2013@gmail.com
File Name: autoencoder/baseline/lda.py
Class Name:
Method Name: generate_doc_codes


Project Name: hugochan/KATE
Commit Name: 5d4a9fad1f90fc115ca7d53253798147843c2e18
Time: 2017-02-09
Author: hugochan2013@gmail.com
File Name: autoencoder/baseline/doc_word2vec.py
Class Name:
Method Name: doc_word2vec