Keep sklearnt model in memory to speed up prediction
Can't you store only the parameters of your SVM classifier with clf.get_params() instead of the whole object?
I have trained a SVM model with sklearn, I need to connect this to php. To do this I am using exec command to call in the console the python script, where I load the model with pickle and predict the results. The problem is that loading the model with pickle takes some time (a couple of seconds) and I would like it to be faster. Is there a way of having this model in memory so I don't need to load with pickle every time?