Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Storing scikit model in DB

IronScott-OracleFeb 27 2020 — edited Feb 27 2020

I’m running a scikit model on an Oracle Cloud environment. My final output is a Pipeline object. I need to be able to store this in a DB for a separate Python script to use later. I’ve been able to test the theory using pickle but storing the object on the file system isn’t going to be allowed once the code goes live. I thought a good approach would be to store the object as a blob in an Oracle DB. I can’t seem to find anything that works. The examples I’ve found have cx_Oracle error out with something like Pipeline object not supported.

Is this approach possible? Or some other approach recommended? Or am I just out of luck?

I’d like to be able to do the same thing with dataframe and objects as well, meaning storing objects as objects versus writing data to tables as columns and rows.

Sqlalchemy seems to be the route most people have success with but I don’t have access to it and cannot get it installed.

This post has been answered by Anthony Tuininga-Oracle on Feb 27 2020
Jump to Answer

Comments

Post Details

Added on Feb 27 2020
2 comments
1,088 views