0e17f47e9a4920e276bb61b60d6de16264bc6bcf,pythonds/util/prob_functions.py,,entropy_func,#Any#Any#Any#,68
Before Change
supports[supports > 1] = 1
supports[supports < 0] = 0
is_correct[is_correct == 0] = -1
ent = 1 - ((1/np.log(n_classes)) * np.sum(np.multiply(supports, np.log(supports)), axis=1))
C_src = np.multiply(ent, is_correct)
After Change
C_src = np.zeros(n_samples)
for index in range(n_samples):
C_src[index] = (1.0/np.log(n_classes)) * (entropy(supports[index, :]))
C_src[index] += ((2 * is_correct[index]) - 1)
return C_src
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: scikit-learn-contrib/DESlib
Commit Name: 0e17f47e9a4920e276bb61b60d6de16264bc6bcf
Time: 2017-12-29
Author: rafaelmenelau@gmail.com
File Name: pythonds/util/prob_functions.py
Class Name:
Method Name: entropy_func
Project Name: scikit-learn-contrib/DESlib
Commit Name: a22defa871144b4e451364e0c2ba23db359d77f0
Time: 2020-02-09
Author: rafaelmenelau@gmail.com
File Name: deslib/util/prob_functions.py
Class Name:
Method Name: entropy_func
Project Name: modAL-python/modAL
Commit Name: eecfa078a26ec4552ad3b72df0ba3fe02e37b58e
Time: 2017-12-16
Author: 28926195+cosmic-cortex@users.noreply.github.com
File Name: modAL/uncertainty.py
Class Name:
Method Name: classifier_entropy