e2b67b112d0f3db38221d8dd0c9efc395e17792e,mlxtend/evaluate/bootstrap_point632.py,,no_information_rate,#,31
Before Change
def no_information_rate(targets, predictions, loss_fn):
combinations = np.array(np.meshgrid(targets, predictions)).reshape(-1, 2)
return loss_fn(combinations[:, 0], combinations[:, 1])
def accuracy(targets, predictions):
After Change
def no_information_rate(targets, predictions, loss_fn):
combinations = np.array(list(product(targets, predictions)))
return loss_fn(combinations[:, 0], combinations[:, 1])
def accuracy(targets, predictions):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: rasbt/mlxtend
Commit Name: e2b67b112d0f3db38221d8dd0c9efc395e17792e
Time: 2020-05-13
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/bootstrap_point632.py
Class Name:
Method Name: no_information_rate
Project Name: PIQuIL/QuCumber
Commit Name: a3645eada1fd6b0dc2f262033a93b81a6ca84b55
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/unitaries.py
Class Name:
Method Name: rotate_psi_inner_prod
Project Name: astroML/astroML
Commit Name: f388923837f92a9de81b97898eadde495353331b
Time: 2018-11-16
Author: bsipocz@gmail.com
File Name: astroML/density_estimation/gauss_mixture.py
Class Name: GaussianMixture1D
Method Name: __init__