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

Deploying objects on the TabPy server #16

Closed
idanivanov opened this issue Jan 6, 2017 · 2 comments
Closed

Deploying objects on the TabPy server #16

idanivanov opened this issue Jan 6, 2017 · 2 comments

Comments

@idanivanov
Copy link

Hi,

I think it would be great if there was the option to deploy not only functions but also objects on the TabPy server.

I am using scikit-learn models to predict values in Tableau. Currently, when having a pre-trained model (a Python object), I store it in a pickle file and read it from the file system every time I execute my TabPy deployed function.

Deploying the object to the TabPy server can save the trouble of manually managing pickle files. It may also slightly improve performance (considering my use case).

Best regards,
Ivan

@BBeran
Copy link
Contributor

BBeran commented Jan 6, 2017

Hi Ivan,
Did you try referring to the trained model in the function you're publishing without manually pickling it? It should automatically pickle it and store as part of the model on publish.

Thank you,

Bora

@idanivanov
Copy link
Author

Hi Bora,

I tried it now. It works great! Thank you!

Best regards,
Ivan

@BBeran BBeran closed this as completed Jan 9, 2017
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

2 participants