ac892eddd865681c9746efeda9f1f094f26cc32f,Orange/data/filter.py,Filter_Random,__call__,#Filter_Random#Any#,78
Before Change
except NotImplementedError:
pass
retain = np.zeros(len(data), dtype=bool)
n = self.prob if self.prob >= 1 else self.prob*len(data)
if self.negate:
retain[n:] = True
else:
retain[:n] = True
After Change
r = np.fromiter((bn.anynan(inst._values) for inst in data),
dtype=bool, count=len(data))
if self.negate:
r = np.logical_not(r)
return data[r]
class HasClass(Filter):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: biolab/orange3
Commit Name: ac892eddd865681c9746efeda9f1f094f26cc32f
Time: 2012-11-29
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/filter.py
Class Name: Filter_Random
Method Name: __call__
Project Name: interactiveaudiolab/nussl
Commit Name: d882543331fd9035746cc3e4115f4ad8ac119324
Time: 2017-08-08
Author: daniel.felixkim@gmail.com
File Name: nussl/separation/duet.py
Class Name: Duet
Method Name: _compute_masks
Project Name: Kamnitsask/deepmedic
Commit Name: 70cf20f6cf5e21c3b6165067483b925db61c161c
Time: 2018-06-17
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/neuralnet/layers.py
Class Name: SoftmaxLayer
Method Name: getRpRnTpTnForTrain0OrVal1