9303d06331cf6895188591e623cbbca76ea27c3d,cellprofiler/objects.py,Objects,relate_children,#Objects#Any#,300
Before Change
parent_labels = children.crop_image_similarly(parent_labels)
except ValueError:
parent_labels , child_labels = crop_labels_and_image(parent_labels,
child_labels)
return self.relate_labels(parent_labels, child_labels)
After Change
object number.
if self.has_ijv or children.has_ijv:
histogram = self.histogram_from_ijv(self.ijv, children.ijv)
else :
histogram = self.histogram_from_labels(self.segmented, children.segmented)
parent_count = histogram.shape[0 ] - 1
child_count = histogram.shape[1 ] - 1
parents_of_children = np.argmax(histogram, axis=0 )
children_per_parent = np.histogram(parents_of_children[1 :], np.arange(parent_count + 2 ))[0 ][1 :]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: CellProfiler/CellProfiler
Commit Name: 9303d06331cf6895188591e623cbbca76ea27c3d
Time: 2011-07-12
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/objects.py
Class Name: Objects
Method Name: relate_children
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: bd298684614646d8f0db5a6597ef88b8d662e25e
Time: 2020-02-21
Author: M.N.Tran@ibm.com
File Name: tests/defences/test_distillation.py
Class Name: TestDistillationVectors
Method Name: test_keras_iris
Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/keras/mnist_inference.py
Class Name:
Method Name: inference