9cdd21160f4b4352b05f7b7ce9f0f63506c585c9,benchmarks/bench_ml.py,,load_data_target,#Any#,144

Before Change


            data = fetch_mldata("climate-model-simulation-crashes")
        except HTTPError as e:
            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]

After Change


    elif name == "Housing":
        data = fetch_california_housing()
        dataset_size = 1000 // this is necessary so that SVR does not slow down too much
        data["data"] = data["data"][:dataset_size]
        data["target"] =data["target"][:dataset_size]
    elif name == "digits":
        data = load_digits()
Italian Trulli
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: 1adrianb/face-alignment
Commit Name: f90efe38fb0b1019e5bdc06b8a325aefe44893ea
Time: 2018-12-19
Author: bulat.adrian@gmail.com
File Name: face_alignment/detection/sfd/sfd_detector.py
Class Name: SFDDetector
Method Name: __init__


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: e2c82d3fec3b127db07e557d3437aa52243bbe9a
Time: 2020-07-29
Author: minhduc8199@gmail.com
File Name: hls4ml/utils/example_models.py
Class Name:
Method Name: fetch_example_model