Migration from ibm_watson_machine_learning

New ibm_watsonx_ai Python SDK is upgraded version of ibm_watson_machine_learning. They are similar in usage, however new Python SDK is extended with new functionality and cleared of outdated code. Your first attempt to migrate should be update the imports to new Python SDK (as seen below) and see if this is sufficient change by running the code. Observe if any warnings or errors are raised, which would indicate need of further changes.

Migration Steps to New Packages

  1. Installation and import:

    To install ibm_watsonx_ai, run:

    $ pip install -qU ibm-watsonx-ai
    

    To import components from ibm_watsonx_ai, (example of importing APIClient) run:

    from ibm_watsonx_ai import APIClient