Can anyone help me speeding up this this loop with Ray or Multiprocessing. Trying to get as much help as possible so any tip or advice is welcome. Thanks, M.
n_train = 180 n_records = len(X) pred =  for i in range(n_train, n_records): train_model = MultiOutputClassifier(DecisionTreeClassifier(), n_jobs=-1).fit(X[1:i], y[1:i]) predict_model = train_model.predict(X[i:i+1]) pred.append(predict_model) print(predict_model)
Source: Python Questions