MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

If Dataset.register() is deprecated? Where can i find info on the `visible` param?

Open dataders opened this issue 6 years ago • 6 comments

It's not in azureml.data.abstract_dataset.AbstractDataset.register but azureml.core.dataset.register is deprecated? When I call Dataset.register() what class am I using anyway?? @MayMSFT

help(Dataset.register)

Help on function register in module azureml.core.dataset:

register(self, workspace, name, description=None, tags=None, visible=True, exist_ok=False, update_if_exist=False)
    Register the Dataset in the workspace, making it available to other users of the workspace.
    
    .. note::
    
        This method is deprecated. Use :meth:`azureml.data.abstract_dataset.AbstractDataset.register` instead.
        For more information, see https://aka.ms/dataset-deprecation.
    
    :param workspace: The AzureML workspace in which the Dataset is to be registered.
    :type workspace: azureml.core.Workspace
    :param name: The name of the Dataset in the workspace.
    :type name: str
    :param description: A description of the Dataset.
    :type description: str, optional
    :param tags: Tags to associate with the Dataset.
    :type tags: dict[str,str], optional
    :param visible: Indicates whether the Dataset is visible in the UI.
        If False, then the Dataset is hidden in the UI and available via SDK.
    :type visible: bool, optional
    :param exist_ok: If True, the method returns the Dataset if it already exists in the given workspace,
        else error.
    :type exist_ok: bool, optional
    :param update_if_exist: If ``exist_ok`` is True and ``update_if_exist`` is True, this method will update
        the definition and return the updated Dataset.
    :type update_if_exist: bool, optional
    :return: A registered Dataset object in the workspace.
    :rtype: azureml.core.dataset.Dataset

Document Details

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

dataders avatar Feb 05 '20 19:02 dataders

in the methods table of contents of this page, it says the method is deprecated image However it is linked directly from here image

dataders avatar Feb 06 '20 01:02 dataders

created a PR to fix the redirection on doc article (may take a day to live). It should redirect to https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.data.abstract_dataset.abstractdataset?view=azure-ml-py#register-workspace--name--description-none--tags-none--create-new-version-false-

Dataset.register is the deprecated method.

MayMSFT avatar Feb 06 '20 16:02 MayMSFT

The documentation has been updated. We will now proceed to close this thread. #please-close

nibaccam avatar Feb 11 '20 16:02 nibaccam

@MayMSFT shouldn't the updated documentation include the is_visible parameter? I don't see it in the link you included

dataders avatar Feb 11 '20 18:02 dataders

visible parameter is not enabled for the FileDataset, TabularDataset register method. Do you need this capability?

MayMSFT avatar Feb 11 '20 22:02 MayMSFT

Since it's been awhile since we last heard from you, I will proceed to close this issue. If you feel that your doc issue hasn't been resolved, please reopen an issue with additional details.

PeterCLu avatar Apr 07 '20 18:04 PeterCLu