fd633602af08b199d87d222a8cfb85acea17b55a,optuna/visualization.py,,_get_intermediate_plot,#Any#,52

Before Change


    except Exception:  // empty study
        return go.Figure(data=[], layout=layout)

    if "intermediate_values" not in df:
        return go.Figure(data=[], layout=layout)

    target_state = [TrialState.PRUNED, TrialState.COMPLETE, TrialState.RUNNING]
    dst_df = df[df["state"].isin(target_state)]
    dst_df = dst_df[dst_df["intermediate_values"].isnull().all(axis=1) == False]
    traces = []
    for __, row in dst_df.iterrows():
        trace = go.Scatter(

After Change


    for trial in trials:
        trace = go.Scatter(
            x=tuple(trial.intermediate_values.keys()),
            y=tuple(trial.intermediate_values.values()),
            mode="lines+markers",
            marker={
                "maxdisplayed": 10
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: fd633602af08b199d87d222a8cfb85acea17b55a
Time: 2019-09-11
Author: suehiro619@gmail.com
File Name: optuna/visualization.py
Class Name:
Method Name: _get_intermediate_plot


Project Name: mozilla/bugbug
Commit Name: 3a2095d82b110f4e8c8f05b226f54c74f482fdfa
Time: 2019-11-21
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/testselect.py
Class Name: TestSelectModel
Method Name: items_gen


Project Name: pantsbuild/pants
Commit Name: 5bfd6cdef169103f539a092920f0004bfa5fb6f4
Time: 2018-12-06
Author: stuhood@twitter.com
File Name: src/python/pants/option/options_bootstrapper.py
Class Name: OptionsBootstrapper
Method Name: get_full_options