Azure-docs: Incorrect indentation in pipeline-batch-scoring.ipynb

Created on 19 Nov 2018  Â·  2Comments  Â·  Source: MicrosoftDocs/azure-docs

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!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-bug machine-learninsvc triaged

Most helpful comment

Thanks for the feedback. We will update the Notebook soon.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bityob picture bityob  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments