Machinelearningnotebooks: Moving Data in and out of pipelines documentation has incorrect API

Created on 14 Sep 2020  路  3Comments  路  Source: Azure/MachineLearningNotebooks

The following document reads:

To pass a dataset to your pipeline step:

  1. Use TabularDataset.as_named_inputs() or FileDataset.as_named_input() (no 's' at end) to create a DatasetConsumptionConfig object

However as_named_inputs() results in AttributeError

train_dataset.as_named_inputs('foo')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-10-ab05b3fe51a0> in <module>
----> 1 train_dataset.as_named_inputs('foo')

AttributeError: 'TabularDataset' object has no attribute 'as_named_inputs'

The correct statement should probably be:

To pass a dataset to your pipeline step:

  1. Use TabularDataset.as_named_input() or FileDataset.as_named_input() to create a DatasetConsumptionConfig object
Data4ML doc-bug

All 3 comments

made a PR to fix - @MayMSFT please confirm this is correct, there were a few instances of as_named_inputs in this article. https://github.com/MicrosoftDocs/azure-docs-pr/pull/129711

PR has been merged - will close this once updated on public docs (likely this evening or tomorrow) - thanks @ahyerman for reporting

Thanks @lostmygithubaccount for the quick turnaround!

Was this page helpful?
0 / 5 - 0 ratings