cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8,superintendent/semisupervisor.py,SemiSupervisor,_annotation_iterator,#SemiSupervisor#,102
Before Change
def _annotation_iterator(self, relabel, options, shuffle=True):
for i, row in self._data_iterator(self.features, shuffle=shuffle):
if relabel[i]:
new_val = yield self._compose(row, options)
self.progressbar.value += 1
if isinstance(self.new_labels, (pd.Series, pd.DataFrame)):
self.new_labels.loc[i] = new_val
else:
try:
self.new_labels[i] = float(new_val)
except ValueError:
// catching assignment of string to number array
self.new_labels = self.new_labels.astype(np.object)
self.new_labels[i] = new_val
if new_val not in self.input_widget.options:
self.input_widget.options = self.input_widget.options + [
new_val
]
if self.event_manager is not None:
self.event_manager.close()
yield self._render_finished()
After Change
def _annotation_iterator(self):
Relabel should be integer indices
while len(self._label_queue) > 0:
idx = self._label_queue.pop()
self._already_labelled.append(idx)
row = get_values(self.features, [idx])
new_val = yield self._compose(row)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/semisupervisor.py
Class Name: SemiSupervisor
Method Name: _annotation_iterator
Project Name: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/clustersupervisor.py
Class Name: ClusterSupervisor
Method Name: _annotation_iterator
Project Name: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__