parameters: (predict, X, out, lock)
docstring: This is a utility function for joblib's Parallel.
  
      It can't go locally in ForestClassifier or ForestRegressor, because joblib
      complains that it cannot pickle it when placed there.
docstring_summary: This is a utility function for joblib's Parallel.
docstring_tokens: This is a utility function for joblib s Parallel .
function: def _accumulate_prediction(predict, X, out, lock):
      """
      This is a utility function for joblib's Parallel.
  
      It can't go locally in ForestClassifier or ForestRegressor, because joblib
      complains that it cannot pickle it when placed there.
      """
      prediction = predict(X, check_input=False)
      with lock:
          if len(out) == 1:
              out[0] += prediction
          else:
              for i in range(len(out)):
                  out[i] += prediction[i]
function_tokens: def _accumulate_prediction ( predict , X , out , lock ) : prediction = predict ( X , check_input = False ) with lock : if len ( out ) == 1 : out [ 0 ] += prediction else : for i in range ( len ( out ) ) : out [ i ] += prediction [ i ]