Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add REST API Example for ML Model using Db2 REST Endpoint #54

Open
db2Dean opened this issue Oct 27, 2022 · 3 comments
Open

Add REST API Example for ML Model using Db2 REST Endpoint #54

db2Dean opened this issue Oct 27, 2022 · 3 comments

Comments

@db2Dean
Copy link
Contributor

db2Dean commented Oct 27, 2022

I am interested in adding Jupyter Notebooks to the "Deploying External Models with Python UDF" directory that show how to use the Db2 REST endpoint to create and execute a REST service to execute the linear regression that the other notebook in this directory creates. Using a REST service allows applications that need to call a ML model to do so without importing any Db2 libraries or even connecting directly to a database. I have developed three notebooks that show this and have attached them here in a zip file. They need to be cleaned up to before adding, but I wanted to see if you would accept this sort of example. Here are brief descriptions of the notebooks:

  • Db2 RESTful External Py UDF.ipynb – Creates the REST Services and executes them.
  • Db2 RESTful Prep.ipynb – Shows the grants and other database prep for creating and executing the procedures
  • Db2 RESTful Endpoint Get Token Notebook.ipynb – Called by the Db2 RESTful External Py UDF.ipynb notebook to provide tokens needed to authenticate to the REST Endpoint.

Please let me know if this can be contributed.
Notebooks.zip

@kdrodger
Copy link
Member

kdrodger commented Nov 2, 2022

Hi @db2Dean . Just thought I should reach out to confirm - has Shaikh been talking to you outside of this channel? He and I spoke about this elsewhere and had no broad concerns, so we talked a bit about the contribution process ( https://github.com/IBM/db2-samples/blob/master/CONTRIBUTING.md ) to make this happen. Thanks.

@db2Dean
Copy link
Contributor Author

db2Dean commented Nov 2, 2022 via email

@kdrodger
Copy link
Member

kdrodger commented Nov 3, 2022

Perfect. So yes, feel free to prepare a PR here as usual @db2Dean . Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants