In the section pipeline-batch-scoring.ipynb#Python-scripts-to-run, the function get_class_label_dict(label_file) has incorrect indentation. Instead of 4 spaces, only 2 has been added. The rest of the notebook seems to be fine, though.
def get_class_label_dict(label_file):
label = []
proto_as_ascii_lines = tf.gfile.GFile(label_file).readlines()
for l in proto_as_ascii_lines:
label.append(l.rstrip())
return label
should be
def get_class_label_dict(label_file):
label = []
proto_as_ascii_lines = tf.gfile.GFile(label_file).readlines()
for l in proto_as_ascii_lines:
label.append(l.rstrip())
return label
I don't think the functionality is impacted, but it looks weird. And Jupyter highlights the error.
Thank you for a great guide and a great service!
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for the feedback. We will update the Notebook soon.
@ArvidBaa We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Most helpful comment
Thanks for the feedback. We will update the Notebook soon.