4acb2e669d287af76b2936b42d801b7d1c818c4d,examples/skimage_lbp_simple.py,,load_data,#,28
Before Change
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]
After Change
dataset = fetch_olivetti_faces(shuffle=True, random_state=rng)
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: snorkel-team/snorkel
Commit Name: 8b16baea2be04c171893108aeae7fc2edfc08967
Time: 2017-09-20
Author: rogergoldman@gmail.com
File Name: snorkel/utils.py
Class Name:
Method Name: matrix_conflicts
Project Name: rasbt/mlxtend
Commit Name: cec517350d259a4f49a58a769db784c248cfffa8
Time: 2021-01-08
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/accuracy.py
Class Name:
Method Name: accuracy_score