3f88b6659ee609857724cd2170f8ad9f76d353fd,ann_benchmarks/datasets.py,,get_manifest,#Any#,51
Before Change
with open(local_fn + ".yaml") as mf:
y = yaml.load(mf)
if "dataset" in y:
manifest.update(y["dataset"])
if "test_size" in y:
manifest["test_size"] = int(y["test_size"])
return manifest
After Change
if os.path.exists(local_fn + ".yaml"):
with open(local_fn + ".yaml") as mf:
r = yaml.load(mf)
for name, value in r.items():
if name in manifest:
manifest[name].update(value)
else:
manifest[name] = value
return manifest
def split_dataset(X, random_state=3, test_size=10000):
import sklearn.cross_validation
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: erikbern/ann-benchmarks
Commit Name: 3f88b6659ee609857724cd2170f8ad9f76d353fd
Time: 2017-04-27
Author: alef@itu.dk
File Name: ann_benchmarks/datasets.py
Class Name:
Method Name: get_manifest
Project Name: prody/ProDy
Commit Name: bfe9a636ea6bd4f858b86880aa84de45b33b511a
Time: 2018-03-13
Author: shz66@pitt.edu
File Name: prody/atomic/atomic.py
Class Name:
Method Name:
Project Name: jazzband/django-debug-toolbar
Commit Name: 908b49cb7d2d527b701996f0d0b9e1e19e765819
Time: 2013-11-24
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/settings.py
Class Name:
Method Name: