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

Before Change


        showlegend=False
    )

    try:
        df = study.trials_dataframe()
        df = df.rename(columns={"number": "trial_id"})
    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]

After Change



    trials = study.trials

    if len(trials) == 0:
        logger.warning("Study instance does not contain trials.")
        return go.Figure(data=[], layout=layout)
    if hasattr(trials[0], "intermediate_values") is False:
        logger.warning(
            "You need to set up the pruning feature to utilize plot_intermediate_values()")
        return go.Figure(data=[], layout=layout)

    target_state = [TrialState.PRUNED, TrialState.COMPLETE, TrialState.RUNNING]
    trials = [trial for trial in trials if trial.state in target_state]
    traces = []
    for trial in trials:
        trace = go.Scatter(
            x=tuple(trial.intermediate_values.keys()),
            y=tuple(trial.intermediate_values.values()),
            mode="lines+markers",
            marker={
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

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: pymc-devs/pymc3
Commit Name: bdd3dc0a47c80609b6a273e602a2b76992c83d5a
Time: 2018-09-26
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/distributions/distribution.py
Class Name:
Method Name: to_tuple


Project Name: prody/ProDy
Commit Name: 9355ea209c2664ee3c2565431f50b960816ea59a
Time: 2019-11-19
Author: shz66@pitt.edu
File Name: prody/proteins/pdbclusters.py
Class Name:
Method Name: loadPDBClusters


Project Name: tensorlayer/tensorlayer
Commit Name: ab50820c352bef9a551ec6349ad73397c1529cf5
Time: 2019-01-15
Author: dhsig552@163.com
File Name: tensorlayer/layers/dense/binary_dense.py
Class Name: BinaryDense
Method Name: build