sql-machine-learning / sqlflow

Brings SQL and AI together.
https://sqlflow.org
Apache License 2.0
5.11k stars 701 forks source link

Python runtime package should support loading model from model zoo #3011

Closed typhoonzero closed 4 years ago

typhoonzero commented 4 years ago

In the refactored code, SQLFlow compiles an SQL program into a YAML file with target Python code, the Python code should be able to load a model from the database to do prediction, explain, etc. If we write a statement like SELECT ... TO PREDICT ... USING sqlflowmodelzoo.org:50055/my_exported_model:v0.1, the Python code should be able to download the model from the model zoo and run the prediction job.