[][src]Function lightgbm_sys::LGBM_BoosterCalcNumPredict

pub unsafe extern "C" fn LGBM_BoosterCalcNumPredict(
    handle: BoosterHandle,
    num_row: c_int,
    predict_type: c_int,
    start_iteration: c_int,
    num_iteration: c_int,
    out_len: *mut i64
) -> c_int

\brief Get number of predictions. \param handle Handle of booster \param num_row Number of rows \param predict_type What should be predicted

  • C_API_PREDICT_NORMAL: normal prediction, with transform (if needed);
  • C_API_PREDICT_RAW_SCORE: raw score;
  • C_API_PREDICT_LEAF_INDEX: leaf index;
  • C_API_PREDICT_CONTRIB: feature contributions (SHAP values) \param start_iteration Start index of the iteration to predict \param num_iteration Number of iterations for prediction, <= 0 means no limit \param[out] out_len Length of prediction \return 0 when succeed, -1 when failure happens