IBM / product-recommendation-with-watson-ml

Build a recommendation engine with Spark and Watson Machine Learning
https://developer.ibm.com/patterns/build-a-product-recommendation-engine-with-watson-machine-learning/
Apache License 2.0
45 stars 55 forks source link

i10:use WML client lib #11

Closed ptitzler closed 6 years ago

ptitzler commented 6 years ago

Delivers #10:

ptitzler commented 6 years ago

oops, yes. sorry.

scottdangelo commented 6 years ago

Are you running the Python with Spark 3.5 kernel for this? I'm getting an error when I run the cell from watson_machine_learning_client import WatsonMachineLearningAPIClient:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-19581e9412f7> in <module>()
----> 1 from watson_machine_learning_client import WatsonMachineLearningAPIClient

ImportError: No module named 'watson_machine_learning_client'
ptitzler commented 6 years ago

The cell after that installs the library, if required. (See comment there) I don't think it is installed by default in any of the kernels. I tested with Python 3.5/Spark 2.x.