1fe0dbac77b18ea24885ad4d367c849152df8a94,matchzoo/models/parameter_readme_generator.py,,_make_model_params_table,#Any#,52

Before Change



def _make_model_params_table(model):
    params = model.get_default_params()
    df = pd.DataFrame(data={
        "Name": [p.name for p in params],
        "Description": [p.desc for p in params],
        "Default Value": [p.value for p in params],
        "Default Hyper-Space": [p.hyper_space for p in params]
    }, columns=["Name", "Description", "Default Value", "Default Hyper-Space"])
    return tabulate.tabulate(df, tablefmt="rst", headers="keys") + "\n\n"


def _write_to_files(full):

After Change


def _make_model_params_table(model):
    params = model.get_default_params()
    df = params.to_frame()
    df = df.rename({
        "Value": "Default Value",
        "Hyper-Space": "Default Hyper-Space"
    }, axis="columns")
    return tabulate.tabulate(df, tablefmt="rst", headers="keys") + "\n\n"


def _write_to_files(full):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NTMC-Community/MatchZoo
Commit Name: 1fe0dbac77b18ea24885ad4d367c849152df8a94
Time: 2019-01-13
Author: i@uduse.com
File Name: matchzoo/models/parameter_readme_generator.py
Class Name:
Method Name: _make_model_params_table


Project Name: streamlit/streamlit
Commit Name: aa8a7efd83e323856ca48742cb44a2fcb84b6bea
Time: 2018-04-24
Author: adrien.g.treuille@gmail.com
File Name: examples/scratchpad.py
Class Name:
Method Name:


Project Name: NTMC-Community/MatchZoo
Commit Name: a871536bcbb38b9ca03b0bc777712d8c0a79ad90
Time: 2018-12-13
Author: i@uduse.com
File Name: matchzoo/data_pack/pack.py
Class Name:
Method Name: pack