9cdd21160f4b4352b05f7b7ce9f0f63506c585c9,benchmarks/bench_ml.py,,load_data_target,#Any#,144
Before Change
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/00252/pop_failures.dat"
urlretrieve(url, "pop_failures.dat")
data = dict()
samples = np.loadtxt("pop_failures.dat", skiprows=1)
os.remove("pop_failures.dat")
data["data"] = samples[:, :-1]
data["target"] = np.array(samples[:, -1], dtype=np.int)
else:
After Change
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/00252/pop_failures.dat"
data = urlopen(url).read().split("\n")[1:]
data = [[float(v) for v in d.split()] for d in data]
samples = np.array(data)
data = dict()
data["data"] = samples[:, :-1]
data["target"] = np.array(samples[:, -1], dtype=np.int)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: scikit-optimize/scikit-optimize
Commit Name: 9cdd21160f4b4352b05f7b7ce9f0f63506c585c9
Time: 2017-04-17
Author: iaroslav-ai@users.noreply.github.com
File Name: benchmarks/bench_ml.py
Class Name:
Method Name: load_data_target
Project Name: SPFlow/SPFlow
Commit Name: 1facee330afb8fbd3f1eda762d0954b32863d2c3
Time: 2018-06-19
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/tests/old/test_tf.py
Class Name:
Method Name:
Project Name: craffel/mir_eval
Commit Name: 7d805ab9d26c74db2319658f1ee1d0235f092845
Time: 2014-07-25
Author: craffel@gmail.com
File Name: mir_eval/input_output.py
Class Name:
Method Name: load_time_series