Scalable in-database machine learning with PL/Python
summary
Shows how to run scikit learn models inside Postgres via PL/Python using a wine dataset to train a ridge regression on wine dataset and returns coefficients, intercept and R². Demonstrates the 1 GB field limit for UDF inputs and a practical workaround using a global GD cache to stream rows into Python so models can use tens of GB of server RAM. Presents Apache MADlib as the C++-backed option for model-parallel, elastic net and other algorithms that run faster than plain scikit learn on Postgres/Greenplum/Hawq.
AI-written summary · about
chapters (12)
- 0:00Start
- 6:08Model Parallel Problems
- 7:31Wine Quality Data Set
- 9:44Example of Building a Machine Learning Model
- 10:04Helper Functions
- 10:47Model Coefficients
- 11:17User-Defined Aggregates
- 12:30Pl Python Function
- 19:12User Defined Aggregate
- 24:22Building Scalable Models
- 24:55Machine Learning Library
- 30:11The Predict Function in Matlab
related talks
55mDistributed In-Database Machine Leaning
25mPostgres and the Artificial Intelligence Landscape
01h 00mPostgreSQL and Artificial intelligence
45mPostgres and the Artificial Intelligence
35mBreakout Session
41mMassively Parallel Processing with Procedural Python
49mPostgres and the Artificial Intelligence Landscape
49mPostgreSQL - the database-sister of Python
