IBM / db2-samples

Db2 application code, configuration samples, and other examples
https://www.ibm.com/analytics/developing-with-db2
Apache License 2.0
85 stars 86 forks source link

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

Open db2Dean opened 1 year ago

db2Dean commented 1 year ago

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:

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

kdrodger commented 1 year ago

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 commented 1 year ago

@Kelly @.***> Yes, I’ve been talking to Shaikh about this and he advised me to go through the official channels to contribute.

Dean Compher Principal Data & AI Technical Specialist IBM Technology, US Nat'l Markets West IBM Db2 11.5 Advanced Database Design Badge Phone: 801-232-6701 e-Mail: @.*** www.db2Dean.com

From: Kelly Rodger @.> Reply-To: IBM/db2-samples @.> Date: Wednesday, November 2, 2022 at 2:51 PM To: IBM/db2-samples @.> Cc: "dean db2dean.com" @.>, Mention @.> Subject: [EXTERNAL] Re: [IBM/db2-samples] Add REST API Example for ML Model using Db2 REST Endpoint (Issue #54) Resent-From: @.> Resent-Date: Wednesday, November 2, 2022 at 2:51 PM

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 ( ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd

Hi @db2Deanhttps://github.com/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.mdhttps://github.com/IBM/db2-samples/blob/master/CONTRIBUTING.md ) to make this happen. Thanks.

— Reply to this email directly, view it on GitHubhttps://github.com/IBM/db2-samples/issues/54#issuecomment-1301226766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH4RUXDRG7BPVM5IORWAPQ3WGLH6BANCNFSM6AAAAAARQOMOMM. You are receiving this because you were mentioned.Message ID: @.***>

kdrodger commented 1 year ago

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