Machine Learning, Predictive Analytics, Deep Learning, Regression, TensorFlow.
Saabas has written more on this): def rf_quantile(m, X, q): # m: sklearn random forests model. # X: X matrix. # q: Quantile. rf_preds = [] for estimator in m.estimators_: rf_preds.append(estimator.predict(X)) # One row per record. rf_preds = np.array(rf_preds).transpose() return