For some parameters (rfun) you pass a string, but for other paramters (cfun, combine, weights_fun, etc.) you pass a function. Should we discuss this?