The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Model Deployment

Model Deployment

Super Learner
0
Votes
1
Answer

Hello.
I am stuck in some point.
How can I save my algorithm for further prediction without the need to retrain or refit it each time I open the jupyter notebook?
Is that easy? 
This is in fact a general question not related to any specific course.
Thank you in advance.

1 Answer

365 Team
0
Votes

Hi Ahmed,
Depends on the model you are trying to save.
If you are trying to save a model in sklearn or statsmodels, you will need to use the pickle package. Then you pickle the object in question and you are done!
If you are using TensorFlow (or some other library that has this functionality) you can easily save a model with the built-in functions. You can refer to the documentation of TensorFlow here: https://www.tensorflow.org/tutorials/keras/save_and_load
Best,
Iliya

×
Learn Data Science
this Summer!
Get 50% OFF