Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
751 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/kaggle-higgs/speedtest.R | 41 | nrounds <- 120 |
| LOW | demo/kaggle-higgs/speedtest.R | 61 | # 111.682 0.777 35.963 |
| LOW | demo/guide-python/generalized_linear_model.py | 21 | # alpha is the L1 regularizer |
| LOW | R-package/R/xgb.DMatrix.save.R | 1 | #' Save xgb.DMatrix object to binary file |
| LOW | R-package/R/xgb.plot.multi.trees.R | 1 | #' Project all trees on one tree |
| LOW | R-package/R/xgb.plot.multi.trees.R | 21 | #' |
| LOW | R-package/R/xgb.plot.multi.trees.R | 41 | #' nrounds = 30, |
| LOW | R-package/R/xgb.plot.deepness.R | 1 | #' Plot model tree depth |
| LOW | R-package/R/xgb.plot.deepness.R | 21 | #' Those could be helpful in determining sensible ranges of the `max_depth` |
| LOW | R-package/R/xgb.plot.deepness.R | 41 | #' |
| LOW | R-package/R/xgb.plot.deepness.R | 61 | #' xgb.plot.deepness(model) |
| LOW | R-package/R/utils.R | 381 | |
| LOW | R-package/R/utils.R | 421 | #' for objects produced by [xgboost()]), outside of its core components, might also keep: |
| LOW | R-package/R/utils.R | 441 | #' not used for prediction / importance / plotting / etc. |
| LOW | R-package/R/utils.R | 461 | #' preferred for long-term storage. |
| LOW | R-package/R/utils.R | 481 | #' |
| LOW | R-package/R/utils.R | 501 | #' xgb.save(bst, fname) |
| LOW | R-package/R/utils.R | 521 | #' obj2 <- readRDS(fname) |
| LOW | R-package/R/utils.R | 541 | #' that code calling xgboost will still work once those are removed in future releases. |
| LOW | R-package/R/xgb.plot.importance.R | 1 | #' Plot feature importance |
| LOW | R-package/R/xgb.plot.importance.R | 21 | #' |
| LOW | R-package/R/xgb.plot.importance.R | 41 | #' - `xgb.ggplot.importance()`: A customizable "ggplot" object. |
| LOW | R-package/R/xgb.plot.importance.R | 61 | #' xgb.plot.importance( |
| LOW | R-package/R/xgb.plot.importance.R | 141 | # Avoid error messages during CRAN check. |
| LOW | R-package/R/xgb.save.raw.R | 1 | #' Save XGBoost model to R's raw vector |
| LOW | R-package/R/xgb.save.raw.R | 21 | #' train <- agaricus.train |
| LOW | R-package/R/xgb.plot.shap.R | 1 | #' SHAP dependence plots |
| LOW | R-package/R/xgb.plot.shap.R | 21 | #' The default (`NULL`) will use up to 100k data points. |
| LOW | R-package/R/xgb.plot.shap.R | 41 | #' If `FALSE`, only a list of matrices is returned. |
| LOW | R-package/R/xgb.plot.shap.R | 61 | #' a meaningful thing to do. |
| LOW | R-package/R/xgb.plot.shap.R | 81 | #' data.table::setDTthreads(nthread) |
| LOW | R-package/R/xgb.plot.shap.R | 101 | #' |
| LOW | R-package/R/xgb.plot.shap.R | 121 | #' model = model_multiclass, |
| LOW | R-package/R/xgb.plot.shap.R | 141 | #' ) |
| LOW | R-package/R/xgb.plot.shap.R | 241 | #' Visualizes SHAP contributions of different features. |
| LOW | R-package/R/xgb.plot.shap.R | 261 | #' and the Python library <https://github.com/shap/shap>. |
| LOW | R-package/R/xgboost.R | 821 | if (is.na(early_stopping_rounds) || early_stopping_rounds <= 0L) { |
| LOW | R-package/R/xgboost.R | 841 | #' |
| LOW | R-package/R/xgboost.R | 861 | #' For package authors using 'xgboost' as a dependency, it is highly recommended to use |
| LOW | R-package/R/xgboost.R | 881 | #' Note that categorical features are only supported for `data.frame` inputs, and are automatically |
| LOW | R-package/R/xgboost.R | 901 | #' set as the last level. |
| LOW | R-package/R/xgboost.R | 921 | #' prediction type (e.g. `multi:softmax` vs. `multi:softprob`) are not allowed, and neither are |
| LOW | R-package/R/xgboost.R | 941 | #' - `"reg:gamma"`: gamma regression with log-link. Output is a mean of gamma distribution. It might be useful, e.g., fo |
| LOW | R-package/R/xgboost.R | 961 | #' 2 (info), and 3 (debug). |
| LOW | R-package/R/xgboost.R | 981 | #' @param early_stopping_rounds Number of boosting rounds after which training will be stopped |
| LOW | R-package/R/xgboost.R | 1001 | #' A value of `+1` for a given feature makes the model predictions / scores constrained to be |
| LOW | R-package/R/xgboost.R | 1021 | #' for more information. |
| LOW | R-package/R/xgboost.R | 1041 | #' Note that, if it contains more than one column, then columns will not be matched by name to |
| LOW | R-package/R/xgboost.R | 1061 | #' - For linear booster: |
| LOW | R-package/R/xgboost.R | 1081 | #' @examples |
| LOW | R-package/R/xgboost.R | 1101 | #' |
| LOW | R-package/R/xgboost.R | 1241 | #' |
| LOW | R-package/R/xgboost.R | 1261 | #' probabilities of belonging to the last class in the case of binary classification). Result will |
| LOW | R-package/R/xgboost.R | 1281 | #' Output will be a numeric matrix with shape `[nrows, nfeatures+1]`, with the intercept being the |
| LOW | R-package/R/xgboost.R | 1301 | #' @param iteration_range Sequence of rounds/iterations from the model to use for prediction, specified by passing |
| LOW | R-package/R/xgboost.R | 1321 | #' |
| LOW | R-package/R/xgboost.R | 1541 | } |
| LOW | R-package/R/xgboost.R | 1561 | #' School of Information and Computer Science. |
| LOW | R-package/R/xgboost.R | 1581 | #' <https://archive.ics.uci.edu/ml/datasets/Mushroom> |
| LOW | R-package/R/xgboost.R | 1601 | #' @importFrom data.table := |
| 259 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/dask/gpu_training.py | 42 | def using_quantile_device_dmatrix(client: Client, X: da.Array, y: da.Array) -> da.Array: |
| LOW | demo/dask/dask_callbacks.py | 18 | def probability_for_going_backward(epoch: int) -> float: |
| LOW | demo/nvflare/horizontal/custom/controller.py | 48 | def process_result_of_unknown_task(self, client: Client, task_name: str, |
| LOW | demo/nvflare/vertical/custom/controller.py | 48 | def process_result_of_unknown_task(self, client: Client, task_name: str, |
| LOW | demo/guide-python/continuation.py | 50 | def training_continuation_early_stop(tmpdir: str, use_pickle: bool) -> None: |
| LOW | tests/python/test_ordinal.py | 72 | def test_training_continuation() -> None: |
| LOW | tests/python/test_ordinal.py | 80 | def test_recode_dmatrix_predict() -> None: |
| LOW | tests/python/test_training_continuation.py | 37 | def run_training_continuation( |
| LOW | tests/python/test_training_continuation.py | 134 | def test_training_continuation_json(self, tmp_path: Path) -> None: |
| LOW | tests/python/test_training_continuation.py | 139 | def test_training_continuation_updaters_json(self, tmp_path: Path) -> None: |
| LOW | tests/python/test_training_continuation.py | 174 | def test_continuation_determinism(kwargs: Any) -> None: |
| LOW | tests/python/test_basic.py | 191 | def test_dmatrix_numpy_init_omp(self): |
| LOW | tests/python/test_basic.py | 227 | def test_cv_explicit_fold_indices(self): |
| LOW | tests/python/test_basic.py | 241 | def test_cv_explicit_fold_indices_labels(self): |
| LOW | tests/python/test_early_stopping.py | 15 | def test_early_stopping_nonparallel(self): |
| LOW | tests/python/test_early_stopping.py | 122 | def test_cv_early_stopping_with_multiple_eval_sets_and_metrics(self): |
| LOW | tests/python/test_with_arrow.py | 39 | def test_arrow_table_with_label(self): |
| LOW | tests/python/test_data_iterator.py | 337 | def test_categorical_extmem_qdm( |
| LOW | tests/python/test_interaction_constraints.py | 11 | def test_exact_interaction_constraints(self) -> None: |
| LOW | tests/python/test_interaction_constraints.py | 14 | def test_hist_interaction_constraints(self) -> None: |
| LOW | tests/python/test_interaction_constraints.py | 17 | def test_approx_interaction_constraints(self) -> None: |
| LOW | tests/python/test_interaction_constraints.py | 20 | def test_interaction_constraints_feature_names(self) -> None: |
| LOW | tests/python/test_interaction_constraints.py | 57 | def test_hist_training_accuracy(self, tree_method: str) -> None: |
| LOW | tests/python/test_model_io.py | 104 | def test_categorical_model_io(self, tmp_path: Path) -> None: |
| LOW | tests/python/test_model_io.py | 341 | def test_with_sklearn_obj_metric(tmp_path: Path) -> None: |
| LOW | tests/python/generate_models.py | 37 | def generate_regression_model() -> None: |
| LOW | tests/python/generate_models.py | 107 | def generate_classification_model() -> None: |
| LOW | tests/python/generate_models.py | 178 | def generate_aft_survival_models() -> None: |
| LOW | tests/python/test_callback.py | 124 | def test_early_stopping_custom_eval(self, breast_cancer: BreastCancer) -> None: |
| LOW | tests/python/test_callback.py | 144 | def test_early_stopping_customize(self, breast_cancer: BreastCancer) -> None: |
| LOW | tests/python/test_callback.py | 206 | def test_early_stopping_custom_eval_skl(self, breast_cancer: BreastCancer) -> None: |
| LOW | tests/python/test_callback.py | 218 | def test_early_stopping_save_best_model(self, breast_cancer: BreastCancer) -> None: |
| LOW | tests/python/test_callback.py | 258 | def test_early_stopping_continuation( |
| LOW | tests/python/test_callback.py | 292 | def test_early_stopping_multiple_metrics(self): |
| LOW | tests/python/test_callback.py | 314 | def test_eta_decay_leaf_output(self, tree_method: str, objective: str) -> None: |
| LOW | tests/python/test_basic_models.py | 104 | def test_boost_from_prediction(self): |
| LOW | tests/python/test_basic_models.py | 119 | def test_boost_from_existing_model(self) -> None: |
| LOW | tests/python/test_basic_models.py | 227 | def test_feature_names_validation(self): |
| LOW | tests/python/test_basic_models.py | 243 | def test_special_model_dump_characters(self) -> None: |
| LOW | tests/python/test_survival.py | 58 | def test_aft_survival_toy_data( |
| LOW | tests/python/test_survival.py | 133 | def test_aft_survival_demo_data(): |
| LOW | tests/python/test_dmatrix.py | 413 | def verify_numpy_feature_names(): |
| LOW | tests/python/test_predict.py | 74 | def test_base_margin_vs_base_score() -> None: |
| LOW | tests/python/test_ranking.py | 93 | def test_ranking_with_unweighted_data(): |
| LOW | tests/python/test_ranking.py | 127 | def test_ranking_with_weighted_data(): |
| LOW | tests/python/test_ranking.py | 184 | def test_lambdarank_parameters(params): |
| LOW | tests/python/test_multi_target.py | 45 | def test_shap_multi_output_tree() -> None: |
| LOW | tests/python/test_multi_target.py | 191 | def test_feature_importance_strategy_compare() -> None: |
| LOW | tests/python/test_multi_target.py | 205 | def test_gradient_based_sampling_accuracy() -> None: |
| LOW | tests/python/test_interpret.py | 7 | def test_shap_values_matches_predict() -> None: |
| LOW | tests/python/test_interpret.py | 20 | def test_shap_values_accepts_sklearn_model() -> None: |
| LOW | tests/python/test_interpret.py | 34 | def test_shap_values_uses_sklearn_iteration_range() -> None: |
| LOW | tests/python/test_interpret.py | 51 | def test_shap_values_rejects_background_data() -> None: |
| LOW | tests/python/test_interpret.py | 61 | def test_shap_values_validates_get_booster() -> None: |
| LOW | tests/python/test_interpret.py | 69 | def test_shap_values_uses_missing_for_array_like_data() -> None: |
| LOW | tests/python/test_interpret.py | 83 | def test_shap_values_rejects_missing_with_dmatrix() -> None: |
| LOW | tests/python/test_config.py | 10 | def test_global_config_verbosity(verbosity_level): |
| LOW | tests/python/test_config.py | 23 | def test_global_config_use_rmm(use_rmm): |
| LOW | tests/python/test_demos.py | 41 | def test_custom_multiclass_objective() -> None: |
| LOW | tests/python/test_demos.py | 48 | def test_custom_rmsle_objective() -> None: |
| 216 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/multiclass_classification/train.py | 3 | |
| LOW | demo/dask/dask_learning_to_rank.py | 16 | |
| LOW | demo/nvflare/vertical/custom/trainer.py | 10 | |
| LOW | demo/guide-python/cat_in_the_dat.py | 24 | |
| LOW | demo/guide-python/learning_to_rank.py | 19 | |
| LOW | tests/test_distributed/test_with_spark/test_spark.py | 6 | |
| LOW | tests/test_distributed/test_gpu_with_dask/conftest.py | 21 | |
| LOW | tests/test_distributed/test_with_dask/conftest.py | 3 | |
| LOW | tests/test_distributed/test_with_dask/test_with_dask.py | 1951 | |
| LOW | tests/test_distributed/test_with_dask/test_with_dask.py | 2042 | |
| LOW | tests/python-sycl/test_sycl_with_sklearn.py | 3 | |
| LOW | tests/python-sycl/test_sycl_prediction.py | 1 | |
| LOW | tests/python-sycl/test_sycl_prediction.py | 7 | |
| LOW | tests/python-sycl/test_sycl_updaters.py | 1 | |
| LOW | tests/python-sycl/test_sycl_updaters.py | 2 | |
| LOW | tests/python-sycl/test_sycl_updaters.py | 3 | |
| LOW | tests/python-sycl/test_sycl_updaters.py | 5 | |
| LOW | tests/python-sycl/test_sycl_updaters.py | 7 | |
| LOW | python-package/xgboost/objective.py | 28 | |
| LOW | python-package/xgboost/compat.py | 39 | |
| LOW | python-package/xgboost/compat.py | 40 | |
| LOW | python-package/xgboost/compat.py | 41 | |
| LOW | python-package/xgboost/compat.py | 81 | |
| LOW | python-package/xgboost/_typing.py | 34 | |
| LOW | python-package/xgboost/__init__.py | 6 | |
| LOW | python-package/xgboost/__init__.py | 6 | |
| LOW | python-package/xgboost/__init__.py | 6 | |
| LOW | python-package/xgboost/__init__.py | 12 | |
| LOW | python-package/xgboost/__init__.py | 12 | |
| LOW | python-package/xgboost/__init__.py | 12 | |
| LOW | python-package/xgboost/__init__.py | 12 | |
| LOW | python-package/xgboost/__init__.py | 12 | |
| LOW | python-package/xgboost/__init__.py | 12 | |
| LOW | python-package/xgboost/__init__.py | 20 | |
| LOW | python-package/xgboost/__init__.py | 21 | |
| LOW | python-package/xgboost/__init__.py | 21 | |
| LOW | python-package/xgboost/__init__.py | 24 | |
| LOW | python-package/xgboost/__init__.py | 24 | |
| LOW | python-package/xgboost/__init__.py | 24 | |
| LOW | python-package/xgboost/__init__.py | 25 | |
| LOW | python-package/xgboost/__init__.py | 25 | |
| LOW | python-package/xgboost/__init__.py | 25 | |
| LOW | python-package/xgboost/__init__.py | 26 | |
| LOW | python-package/xgboost/__init__.py | 26 | |
| LOW | python-package/xgboost/__init__.py | 26 | |
| LOW | python-package/xgboost/__init__.py | 26 | |
| LOW | python-package/xgboost/__init__.py | 26 | |
| LOW | python-package/xgboost/__init__.py | 26 | |
| LOW | python-package/xgboost/core.py | 93 | |
| LOW | python-package/xgboost/training.py | 42 | |
| LOW | python-package/xgboost/data.py | 82 | |
| LOW | python-package/xgboost/data.py | 83 | |
| LOW | python-package/xgboost/data.py | 85 | |
| LOW | python-package/xgboost/data.py | 85 | |
| LOW | python-package/xgboost/_data_utils.py | 41 | |
| LOW | python-package/xgboost/testing/__init__.py | 53 | |
| LOW | python-package/xgboost/testing/__init__.py | 53 | |
| LOW | python-package/xgboost/spark/params.py | 3 | |
| LOW | python-package/xgboost/spark/__init__.py | 8 | |
| LOW | python-package/xgboost/spark/__init__.py | 8 | |
| 6 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | R-package/tests/testthat/test_dmatrix.R | 674 | expect_equal(xgb.get.DMatrix.num.non.missing(dm1), 10) |
| CRITICAL | R-package/tests/testthat/test_dmatrix.R | 679 | expect_equal(xgb.get.DMatrix.num.non.missing(dm2), 8) |
| CRITICAL | python-package/xgboost/data.py | 501 | # pandas.core.internals.managers.SingleBlockManager.array_values() |
| CRITICAL | …rc/main/java/ml/dmlc/xgboost4j/java/flink/XGBoost.java | 170 | return new XGBoostModel(ml.dmlc.xgboost4j.java.XGBoost.loadModel(opened)); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/guide-python/model_parser.py | 146 | |
| LOW | tests/python/test_model_compatibility.py | 29 | |
| LOW | tests/python/test_model_compatibility.py | 76 | |
| LOW | tests/python/test_shap.py | 12 | |
| LOW | tests/python/test_shap.py | 82 | |
| LOW | tests/python/test_tracker.py | 222 | |
| LOW | tests/python/test_tracker.py | 256 | |
| LOW | tests/python/test_tracker.py | 227 | |
| LOW | tests/python/test_tracker.py | 268 | |
| LOW | tests/test_distributed/test_with_dask/test_with_dask.py | 1714 | |
| LOW | tests/python-sycl/test_sycl_updaters.py | 61 | |
| LOW | tests/python-sycl/test_sycl_training_continuation.py | 9 | |
| LOW | tests/python-sycl/test_sycl_training_continuation.py | 29 | |
| LOW | python-package/xgboost/callback.py | 555 | |
| LOW | python-package/xgboost/callback.py | 634 | |
| LOW | python-package/xgboost/core.py | 2319 | |
| LOW | python-package/xgboost/core.py | 3082 | |
| LOW | python-package/xgboost/libpath.py | 19 | |
| LOW | python-package/xgboost/sklearn.py | 1173 | |
| LOW | python-package/xgboost/sklearn.py | 1403 | |
| LOW | python-package/xgboost/sklearn.py | 1833 | |
| LOW | python-package/xgboost/data.py | 370 | |
| LOW | python-package/xgboost/data.py | 534 | |
| LOW | python-package/xgboost/data.py | 1061 | |
| LOW | python-package/xgboost/dask/__init__.py | 1032 | |
| LOW | python-package/xgboost/dask/__init__.py | 1560 | |
| LOW | python-package/xgboost/dask/__init__.py | 1975 | |
| LOW | python-package/xgboost/testing/ordinal.py | 124 | |
| LOW | python-package/xgboost/testing/ordinal.py | 137 | |
| LOW | python-package/xgboost/testing/continuation.py | 14 | |
| LOW | python-package/xgboost/testing/continuation.py | 38 | |
| LOW | python-package/xgboost/testing/shared.py | 53 | |
| LOW | python-package/xgboost/spark/core.py | 1362 | |
| LOW | python-package/xgboost/spark/core.py | 1388 | |
| LOW | python-package/xgboost/spark/data.py | 174 | |
| LOW | python-package/xgboost/spark/data.py | 213 | |
| LOW | jvm-packages/create_jni.py | 70 | |
| LOW | dev/prepare_jvm_release.py | 106 | |
| LOW | doc/conf.py | 65 | |
| LOW | ops/script/run_clang_tidy.py | 103 | |
| LOW | ops/script/lint_cpp.py | 13 | |
| LOW | ops/script/lint_cpp.py | 135 | |
| LOW | ops/script/change_scala_version.py | 7 | |
| LOW | ops/script/test_r_package.py | 230 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/rmm_plugin/rmm_mgpu_with_dask.py | 44 | # To use RMM pool allocator with a GPU Dask cluster, just add rmm_pool_size option |
| MEDIUM | demo/guide-python/custom_softmax.py | 70 | # suitable for demo. Also the one in native XGBoost core is more robust to |
| MEDIUM | python-package/xgboost/config.py | 58 | # Show all messages, including ones pertaining to debugging |
| LOW | python-package/xgboost/sklearn.py | 1851 | # If output_margin is active, simply return the scores |
| MEDIUM | python-package/xgboost/dask/__init__.py | 690 | # dask paradigm. But as a side effect, the `evals_result` in single-node API |
| MEDIUM | python-package/xgboost/testing/__init__.py | 662 | """Reassign stdout temporarily in order to test printed statements |
| LOW | python-package/xgboost/spark/core.py | 673 | # For now, since we cannot call rdd.getNumPartitions(), we just return |
| MEDIUM | python-package/xgboost/spark/core.py | 935 | # Spark-rapids is a project to leverage GPUs to accelerate spark SQL. |
| LOW | python-package/xgboost/spark/core.py | 1351 | # User don't set gpu configurations, just use cpu |
| MEDIUM | …main/scala/ml/dmlc/xgboost4j/scala/spark/XGBoost.scala | 144 | // that utilize GPUs alongside training tasks in order to avoid GPU out-of-memory errors. |
| MEDIUM | src/common/cuda_pinned_allocator.h | 73 | // This is actually a pinned memory allocator in disguise. We utilize HMM or ATS for |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | demo/guide-python/cat_pipeline.py | 66 | # Create an encoder based on training data. |
| MEDIUM | R-package/R/utils.R | 2 | # This file is for the low level reusable utility functions |
| MEDIUM | R-package/inst/make-r-def.R | 2 | # Create a definition file (.def) from a .dll file, using objdump. This |
| MEDIUM | tests/python/test_parse_tree.py | 66 | # Create a feature map with indicator type 'i' |
| MEDIUM | tests/python-gpu/test_gpu_prediction.py | 266 | # Create a wide dataset |
| MEDIUM | python-package/xgboost/dask/data.py | 434 | # Create the training DMatrix |
| MEDIUM | python-package/xgboost/testing/data.py | 180 | # Create a dictionary-backed dataframe, enable this when the roundtrip is |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | demo/guide-python/quantile_data_iterator.py | 0 | utility function for obtaining current batch of data. |
| HIGH | tests/python-gpu/test_from_cudf.py | 0 | utility function for obtaining current batch of data. |
| HIGH | python-package/xgboost/dask/data.py | 0 | utility function for obtaining current batch of data. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/python/test_with_pandas.py | 487 | assert df.equals(copy) |
| HIGH | python-package/xgboost/testing/data.py | 200 | # assert pd_catcodes.equals(pa_catcodes) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/guide-python/distributed_extmem_basic.py | 189 | except Exception as e: |
| LOW | tests/python/test_with_shap.py | 9 | except Exception: |
| LOW | tests/python/test_openmp.py | 44 | except Exception as e: |
| LOW | python-package/xgboost/core.py | 378 | except Exception as e: # pylint: disable=broad-except |
| LOW | python-package/xgboost/data.py | 1313 | except Exception: # pylint: disable=broad-except |
| MEDIUM | python-package/xgboost/data.py | 989 | def _lazy_load_cudf_is_cat() -> Callable[[Any], bool]: |
| LOW | python-package/xgboost/dask/__init__.py | 673 | except Exception: # pylint: disable=broad-except |
| LOW | python-package/xgboost/testing/__init__.py | 187 | except Exception: # pylint: disable=broad-except |
| LOW | python-package/xgboost/testing/__init__.py | 757 | except Exception as e: # pylint: disable=broad-except |
| LOW | python-package/xgboost/spark/core.py | 1654 | except Exception as e: # pylint: disable=W0703 |
| LOW | ops/script/change_version.py | 163 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | R-package/tests/testthat/test_ranking.R | 25 | # Check if the metric is monotone increasing |
| LOW | R-package/tests/testthat/test_ranking.R | 53 | # Check if the metric is monotone increasing |
| LOW | R-package/tests/testthat/test_ranking.R | 63 | all(diff(z) <= 0) # Check if z is monotone decreasing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | demo/guide-python/sklearn_evals_result.py | 25 | # Or you can use: clf = xgb.XGBClassifier(**param_dist) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | R-package/R/xgb.train.R | 420 | #' The purpose of this function is to enable IDE autocompletions and to provide in-package |
| LOW | python-package/xgboost/spark/core.py | 1255 | # all the columns specified by features_cols, so we need to check if |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ops/pipeline/build-cuda.sh | 5 | ## Usage: |
| LOW | ops/pipeline/test-python-wheel.sh | 4 | ## Usage: |