The sample application requires machine learning models trained and deployed using Watson Studio. Please find step by step instruction below.
- create project in Watson Studio
- assosiate: Watson Machine Learning and Spark service
- upload the training data set to DB2 Warehouse on Cloud
- in the Watson Studio create a connection to the table
- upload the feedback data set to DB2 Warehouse on Cloud
- in the Watson Studio create a connection to the table
- upload a notebook to Watson Studio project
Note: Use Spark runtime when uplaoding the notebook
- use
insert to code as spark df
feature to insert the training data table connection (cell [2]) - replace the postgress sql database connection in payload logging section of the notebook (cell [87])
- replace wml_credentials
- run the notebook
- in the Evaluation section of the model configure learning system by providing connection to feedback table
- set the retrain option to always, redeploy if better
- run new iteration
- in the studio add new connection to the payload logging table to see all scoring results logged
- the lineage can be seen on the lineage tab of the model details