I would like load sklearn machine learning model into QC to make predictions as new bars arrived. File is saved as .pkl file.

I can't use ussual way:

model = self.Download("https://github.com/MislavSag/trademl/blob/master/trademl/modeling/rf_model.pkl")

because it imports pkl as string.

Ussual way to do thta is: 

 clf = joblib.load("rf_model.pkl")

How to implement this inside Initialize module?

Author