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 support for Keras Models SQL generation #3

Open
antoinecarme opened this issue Aug 31, 2018 · 3 comments
Open

Add support for Keras Models SQL generation #3

antoinecarme opened this issue Aug 31, 2018 · 3 comments

Comments

@antoinecarme
Copy link
Member

Allow generation deployment SQL for keras models using this web service.

https://github.com/antoinecarme/keras2sql

Deliverables :

  1. Include keras models,
  2. SQL generation and
  3. the necessary tests,
  4. sample python/keras script
@antoinecarme
Copy link
Member Author

antoinecarme commented Aug 31, 2018

Need to :

  1. serialize the trained keras model (json + hdf or using pickle, not easy)
  2. send the serialized model through the web service (easy).
  3. read back the request result and extract the SQL code.

@antoinecarme
Copy link
Member Author

Added some issue for making keras models picklable :

keras-team/keras#10475

Some serious effort already started :

keras-team/keras#10483

@antoinecarme
Copy link
Member Author

As of 2021-05-04 , Keras models do not pickle properly, the test script

https://github.com/antoinecarme/keras2sql/blob/master/test_client.py

which builds a simple RNN classification model on the iris dataset fails to pickle with the following error

Traceback (most recent call last):
  File "/home/antoine/dev/python/packages/sql_deploy/keras2sql/test_client.py", line 64, in <module>
    pickle_data = pickle.dumps(clf)
TypeError: cannot pickle 'weakref' object

Keep the faith that such an issue be solved someday.

keras-team/keras#10475

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

1 participant