Hi there
I'm new to QuantConnect, in fact I just set up my subscription this weekend. I'm really excited by what I've seen so far!
I'm trying to figure out the best way to load or access an ML model that I've trained on AWS. I see that boto3 is available, but my first attempt at accessing it from a notebook gave me an error that looked like the environment was missing the s3transfer module. Before banging my head up against that wall, I figured I'd check the forum to see if reading/writing to an s3 bucket was allowed.
Other than reading or writing my pytorch models from S3, is there a better solution?
Thanks for your help
Mislav Sagovac
I had same problems before. As I remembere, I couldn't import the model saved in pickle format (it was not supported by QC, not sure if they have added that freature).
My solution was to serialize the ML model, save it as json and than import it using self.Download method in Initialize part (
https://www.quantconnect.com/docs/algorithm-reference/importing-custom-data).
There is another way. You train Ml model in research file, than save it as ObjectStore:Â
https://www.quantconnect.com/docs/algorithm-reference/machine-learningÂ
Tom Wilger
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!