e3d1e6dfd06c35dec767c53b930fa69fc2ff7b12,ludwig/utils/visualization_utils.py,,hyperopt_pair_plot,#Any#Any#Any#,1292

Before Change


    params = list(hyperopt_results_df.keys())
    params.remove(score_name)
    num_param = len(params)
    pairs_params = {(param1, param2) for param1 in params for param2 in params}

    fig = plt.figure()
    fig.subplots_adjust(hspace=0.4, wspace=0.4)
    for i, param_pair in enumerate(pairs_params):

After Change


    gs = fig.add_gridspec(num_param, num_param)

    for i, param1 in enumerate(params):
        for j, param2 in enumerate(params):
            if i != j:
                ax = fig.add_subplot(gs[i, j])
                heatmap = hyperopt_results_df.pivot_table(
                    index=param1,
                    columns=param2,
                    values=score_name,
                    aggfunc="mean"
                )
                sns.heatmap(
                    heatmap,
                    linewidths=1,
                    cmap="viridis",
                    ax=ax,
                )

    plt.tight_layout(pad=5)

    if filename:
        plt.savefig(filename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: uber/ludwig
Commit Name: e3d1e6dfd06c35dec767c53b930fa69fc2ff7b12
Time: 2020-04-14
Author: w4nderlust@gmail.com
File Name: ludwig/utils/visualization_utils.py
Class Name:
Method Name: hyperopt_pair_plot


Project Name: ray-project/ray
Commit Name: 765d470c409dec3f599858b6a8ec7199eb8f2fa8
Time: 2020-05-25
Author: 869218239a@zju.edu.cn
File Name: python/ray/state.py
Class Name: GlobalState
Method Name: object_table


Project Name: mozilla/TTS
Commit Name: d733b902552295be41b1f88c8343b5e7b4ff8a9b
Time: 2020-09-16
Author: nicolas.mueller@aisec.fraunhofer.de
File Name: TTS/speaker_encoder/dataset.py
Class Name: MyDataset
Method Name: __parse_items


Project Name: Pinafore/qb
Commit Name: 4571bbf0507e935510b1a89dc6510ee574879fda
Time: 2017-04-19
Author: ski.rodriguez@gmail.com
File Name: qanta/guesser/mem_nn.py
Class Name: MemNNGuesser
Method Name: train