4acb2e669d287af76b2936b42d801b7d1c818c4d,examples/skimage_lbp_simple.py,,load_data,#,28

Before Change


    dataset = fetch_olivetti_faces(shuffle=True, random_state=rng)
    faces = dataset.images
    target = dataset.target
    classes = sorted(list(set(target)))
    ref_index = [(np.min(np.where(target == index))) for index in classes]
    x_ref = faces[ref_index]
    y_ref = target[ref_index]
    test_index = [index for index in range(len(faces)) if index not in ref_index]
    x_test = faces[test_index]

After Change


    faces = dataset.images
    target = dataset.target
    classes = np.unique(target)
    classes.sort()

    ref_index = np.argmax(target == classes[:, None], axis=1)
    test_index = np.delete(np.arange(len(faces)), ref_index)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pfnet/optuna
Commit Name: 4acb2e669d287af76b2936b42d801b7d1c818c4d
Time: 2019-12-01
Author: t.ohmae.nx01@gmail.com
File Name: examples/skimage_lbp_simple.py
Class Name:
Method Name: load_data


Project Name: J535D165/recordlinkage
Commit Name: c2333cd3917685075a239ff32a41594e21b2268e
Time: 2016-05-22
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/classifiers.py
Class Name: BernoulliEMClassifier
Method Name: learn


Project Name: kengz/SLM-Lab
Commit Name: 8c17debc9dc6552da8c317c0c852b55f03c80c61
Time: 2017-12-24
Author: kengzwl@gmail.com
File Name: slm_lab/spec/spec_util.py
Class Name:
Method Name: resolve_aeb