8eec4f9d1578c7ff1cbfa3efd8338a301adebe52,pmlb/dataset_lists.py,,,#,27

Before Change


except: // used in pypi pkg
    import pkgutil
    data = pkgutil.get_data("pmlb", "all_summary_stats.tsv")
    df_summary = pandas.read_csv(data , sep="\t")
regression_dataset_names = df_summary.query("task=="regression"")["dataset"].tolist()
classification_dataset_names = df_summary.query("task=="classification"")["dataset"].tolist()
dataset_names = regression_dataset_names + classification_dataset_names

After Change


from io import StringIO
import pkgutil
data = pkgutil.get_data("pmlb", "all_summary_stats.tsv")
df_summary = pandas.read_csv(StringIO(data.decode("utf-8")) , sep="\t")
regression_dataset_names = df_summary.query("task=="regression"")["dataset"].tolist()
classification_dataset_names = df_summary.query("task=="classification"")["dataset"].tolist()
dataset_names = regression_dataset_names + classification_dataset_names
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: EpistasisLab/penn-ml-benchmarks
Commit Name: 8eec4f9d1578c7ff1cbfa3efd8338a301adebe52
Time: 2020-09-10
Author: weixuanf@upenn.edu
File Name: pmlb/dataset_lists.py
Class Name:
Method Name:


Project Name: nilmtk/nilmtk
Commit Name: 88392e816488749ffa872b8d64174b013a0b941a
Time: 2014-12-23
Author: nipunb@iiitd.ac.in
File Name: nilmtk/dataset_converters/combed/convert_combed.py
Class Name:
Method Name: convert_combed


Project Name: gyoisamurai/GyoiThon
Commit Name: 636036c79d17a945c18b2b74b970ea758f184a86
Time: 2019-03-07
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Creator.py
Class Name: Creator
Method Name: __init__


Project Name: nilmtk/nilmtk
Commit Name: 0568d97009745b14910432b46a29f0c2f4a788b4
Time: 2013-12-17
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset/redd.py
Class Name:
Method Name: load_chan