hide messages "This is an experimental class"

ironv 0 Reputation points
2023-05-10T02:38:13.6466667+00:00

when I run

from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential

ml_client = MLClient.from_config(credential=DefaultAzureCredential(), enable_telemetry=False)

I get the following messages

Found the config file in: /config.json Class FeatureStoreOperations: This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information. Class FeatureSetOperations: This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information. Class FeatureStoreEntityOperations: This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

how can I hide these messages?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,657 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,631 Reputation points
    2023-05-25T07:00:21.4066667+00:00

    @ironv Thanks for the details. To hide experimental class messages in the output, you can set the logging level to a higher level. Here's an example of how to do it:

    import logging

    # set the logging level to WARNING or higher

    logging.basicConfig(level=logging.WARNING)

    This code sets the logging level to WARNING or higher, which means that only warning messages and higher severity messages will be displayed in the output. Experimental class messages are usually logged at the INFO level, so they will not be displayed in the output. You can adjust the logging level to a higher or lower level depending on your needs.

    User's image

    0 comments No comments