787ab0ec8b8b510c503cac87706f453b9083a5cb,Orange/classification/majority.py,MajorityLearner,fit_storage,#MajorityLearner#Any#,25
Before Change
else:
dist.fill(1 / len(dist))
if all(np.array(dist) == dist[0]):
unif_maj = int(sha1(bytes(dat.Y)).hexdigest(), 16) % len(dist)
else:
unif_maj = None
After Change
dist.fill(1 / len(dist))
probs = np.array(dist)
ties = np.flatnonzero(probs == probs.max())
if len(ties) > 1:
random_idx = int(sha1(bytes(dat.Y)).hexdigest(), 16) % len(ties)
unif_maj = ties[random_idx]
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: biolab/orange3
Commit Name: 787ab0ec8b8b510c503cac87706f453b9083a5cb
Time: 2015-08-07
Author: anze.staric@gmail.com
File Name: Orange/classification/majority.py
Class Name: MajorityLearner
Method Name: fit_storage
Project Name: acoular/acoular
Commit Name: 4b8dec5e7199ad302c52bf9eb6914a170491334c
Time: 2018-05-03
Author: tom.j.gensch@campus.tu-berlin.de
File Name: acoular/fbeamform.py
Class Name: PointSpreadFunction
Method Name: _get_psf
Project Name: scipy/scipy
Commit Name: bc889006b64e63457d81a496122463c57998f218
Time: 2015-01-17
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/dsolve/linsolve.py
Class Name:
Method Name: spsolve
Project Name: acoular/acoular
Commit Name: 276f8fc3fe9a7424bae6585ed4453190e2a70815
Time: 2018-05-02
Author: tom.j.gensch@campus.tu-berlin.de
File Name: acoular/fbeamform.py
Class Name: PointSpreadFunction
Method Name: _get_psf