| 18 | return x # [B, L, D] |
| 19 | |
| 20 | class Naive_thread(threading.Thread): |
| 21 | def __init__(self,func,args=()): |
| 22 | super(Naive_thread,self).__init__() |
| 23 | self.func = func |
| 24 | self.args = args |
| 25 | |
| 26 | def run(self): |
| 27 | self.results = self.func(*self.args) |
| 28 | |
| 29 | def return_result(self): |
| 30 | threading.Thread.join(self) |
| 31 | return self.results |
| 32 | |
| 33 | def _arima(seq,pred_len,bt,i): |
| 34 | model = pm.auto_arima(seq) |