Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Saving sklearn Classifiers?

I'm loving the Quantopian research environment, but I'm running into one possible issue. I'm using sklearn classifiers on my dataset, but I'm not sure how to export or visualize it in a way that can be used elsewhere.

Typically, people use pickle to save and load sklearn fits. To my understanding, Quantopian disabled pickle in the research environment. Does anyone have any other ideas?

Is the best option to save my input data to a CSV and re-train the classifier with the data wherever else I plan on using it? It's not an ideal solution, but it may be what I have to work with.

2 responses

Hi Kyle,

I think the pandas function to_csv for saving is also blacklisted by Q per answer here

That's a shame. In that case, I could possibly copy the printout from the log and save that as a CSV. Then upload it to my account load it. Just seems like a lot of extra steps, but it does ensure the security of Quantopian.