5c5fb43a37fe6ff9cbbc74838db9197c2b9facbe,ilastik/applets/pixelClassification/pixelClassificationSerializer.py,PixelClassificationSerializer,_deserializeFromHdf5,#PixelClassificationSerializer#Any#Any#Any#Any#,44
Before Change
// How many labels are there?
max_label = 0
for op in self.operator.opLabelPipeline:
max_label = max(max_label, op.opLabelArray.maxLabel.value)
label_names = []
for i in range(max_label):
label_names.append( "Label {}".format( i+1 ) )
After Change
// For each image
all_labels = set()
for image_index, group in enumerate(topGroup["LabelSets"].values()):
// For each label block
for block in group.values():
data = block[:]
all_labels.update( numpy.unique(data) )
max_label = max(all_labels)
label_names = []
for i in range(max_label):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: ilastik/ilastik
Commit Name: 5c5fb43a37fe6ff9cbbc74838db9197c2b9facbe
Time: 2014-03-17
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/pixelClassification/pixelClassificationSerializer.py
Class Name: PixelClassificationSerializer
Method Name: _deserializeFromHdf5
Project Name: thoughtworksarts/EmoPy
Commit Name: c610546f20082d871de626cba2c1f0e3ae10815c
Time: 2017-12-19
Author: sadnan@thoughtworks.com
File Name: RIOTRuntime/FacialRecognitionUtil.py
Class Name: FacialRecognitionUtil
Method Name: translate
Project Name: wandb/client
Commit Name: 4150edbeececd4768eedc98d9990caf85d896742
Time: 2020-11-13
Author: kdgoyette@gmail.com
File Name: wandb/plot/confusion_matrix.py
Class Name:
Method Name: confusion_matrix