c8105b3974fba93097bd28e5ae14a27e5f56c857,ilastik/applets/objectExtraction/objectExtractionSerializer.py,SerialObjectFeaturesSlot,deserialize,#SerialObjectFeaturesSlot#Any#,79
Before Change
mainOperator = self.slot.getRealOperator()
innerops = mainOperator.innerOperators
opgroup = group[self.name]
for inner in opgroup.keys():
gr = opgroup[inner]
op = innerops[int(inner)]
cache = {}
for t in gr.keys():
cache[int(t)] = []
for ch in sorted(gr[t].keys()):
feat = dict()
for key in gr[t][ch].keys():
feat[key] = gr[t][ch][key].value
cache[int(t)].append(feat)
warnings.warn("FIXME: Not deserializing object features")
//op._opRegFeats._cache = cache
self.dirty = False
class ObjectExtractionSerializer(AppletSerializer):
After Change
mainOperator = self.slot.getRealOperator()
opgroup = group[self.name]
for i, (_, subgroup) in enumerate( sorted(opgroup.items() ) ):
opRegFeats = mainOperator.getLane(i)._opRegFeats
for roiString, roi_grp in subgroup.items():
logger.debug("Loading region features from dataset: "{}"".format( roi_grp.name ))
roi = eval(roiString)
region_features = {}
for key, val in roi_grp.items():
region_features[key] = val[...]
slotRoi = SubRegion( opRegFeats.CacheInput, *roi )
opRegFeats.setInSlot( opRegFeats.CacheInput, (), slotRoi, numpy.array( [[region_features]] ) )
self.dirty = False
class ObjectExtractionSerializer(AppletSerializer):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialObjectFeaturesSlot
Method Name: deserialize
Project Name: Coder-Yu/RecQ
Commit Name: 8e958d70fa54c0b249f7e6de27fd57cbaa7563d4
Time: 2016-11-13
Author: fqq0429@gmail.com
File Name: algorithm/rating/SlopeOne.py
Class Name: SlopeOne
Method Name: predict
Project Name: Coder-Yu/RecQ
Commit Name: eb9b33646872a2565dae65b17e9cb908e886386a
Time: 2016-11-12
Author: 156698920@qq.com
File Name: algorithm/rating/SlopeOne.py
Class Name: SlopeOne
Method Name: predict
Project Name: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialLabelImageSlot
Method Name: deserialize