LabelingΒΆ
The command label_table can be used to label the samples (see section Sampling). An example of using label_table is shown below:
>>> G = em.label_table(S, label_column_name='gold_labels')
The above command will first create a copy of the input table S, update the metadata, add a column with the specified column name (in label_col_name parameter) fill it with 0 (i.e non-matches) and open a GUI for you to update the labels. You must specify 0 for non-matches and 1 for matches. Once you close the GUI, the updated table will be returned.
Please refer to the API reference of label_table()
for more details.