diff --git a/doc/contrib/release.rst b/doc/contrib/release.rst index ae3f05c4033b..5eb31b76a776 100644 --- a/doc/contrib/release.rst +++ b/doc/contrib/release.rst @@ -18,13 +18,20 @@ Making a Release 1. Create an issue for the release, noting the estimated date and expected features or major fixes, pin that issue. 2. Bump release version. + 1. Modify ``CMakeLists.txt`` in source tree and ``cmake/Python_version.in`` if needed, run CMake. + 2. Modify ``DESCRIPTION`` in R-package. + 3. Run ``change_version.sh`` in ``jvm-packages/dev`` + 3. Commit the change, create a PR on GitHub on release branch. Port the bumped version to default branch, optionally with the postfix ``SNAPSHOT``. 4. Create a tag on release branch, either on GitHub or locally. 5. Make a release on GitHub tag page, which might be done with previous step if the tag is created on GitHub. 6. Submit pip, CRAN, and Maven packages. - - The pip package is maintained by [Hyunsu Cho](http://hyunsu-cho.io/) and [Jiaming Yuan](https://github.com/trivialfis). There's a helper script for downloading pre-built wheels and R packages ``xgboost/dev/release-pypi-r.py`` along with simple instructions for using ``twine``. - - The CRAN package is maintained by [Tong He](https://github.com/hetong007). - - The Maven package is maintained by [Nan Zhu](https://github.com/CodingCat) and [Hyunsu Cho](http://hyunsu-cho.io/). + + + The pip package is maintained by `Hyunsu Cho `_ and `Jiaming Yuan `_. There's a helper script for downloading pre-built wheels and R packages ``xgboost/dev/release-pypi-r.py`` along with simple instructions for using ``twine``. + + + The CRAN package is maintained by `Tong He `_. + + + The Maven package is maintained by `Nan Zhu `_ and `Hyunsu Cho `_. diff --git a/doc/gpu/index.rst b/doc/gpu/index.rst index 29c8ba590bbf..51d98a87dd7e 100644 --- a/doc/gpu/index.rst +++ b/doc/gpu/index.rst @@ -95,13 +95,13 @@ XGBoost makes use of `GPUTreeShap `_ as shap_interaction_values = model.predict(dtrain, pred_interactions=True) See examples `here -`_. +`__. Multi-node Multi-GPU Training ============================= XGBoost supports fully distributed GPU training using `Dask `_. For getting started see our tutorial :doc:`/tutorials/dask` and worked examples `here -`_, also Python documentation +`__, also Python documentation :ref:`dask_api` for complete reference. @@ -238,7 +238,7 @@ Working memory is allocated inside the algorithm proportional to the number of r The quantile finding algorithm also uses some amount of working device memory. It is able to operate in batches, but is not currently well optimised for sparse data. -If you are getting out-of-memory errors on a big dataset, try the `external memory version <../tutorials/external_memory.html>`_. +If you are getting out-of-memory errors on a big dataset, try the :doc:`external memory version `. Developer notes =============== diff --git a/doc/jvm/xgboost4j_spark_tutorial.rst b/doc/jvm/xgboost4j_spark_tutorial.rst index 07a3c6609406..afa9e53aef4b 100644 --- a/doc/jvm/xgboost4j_spark_tutorial.rst +++ b/doc/jvm/xgboost4j_spark_tutorial.rst @@ -79,7 +79,7 @@ The first thing in data transformation is to load the dataset as Spark's structu StructField("class", StringType, true))) val rawInput = spark.read.schema(schema).csv("input_path") -At the first line, we create a instance of `SparkSession `_ which is the entry of any Spark program working with DataFrame. The ``schema`` variable defines the schema of DataFrame wrapping Iris data. With this explicitly set schema, we can define the columns' name as well as their types; otherwise the column name would be the default ones derived by Spark, such as ``_col0``, etc. Finally, we can use Spark's built-in csv reader to load Iris csv file as a DataFrame named ``rawInput``. +At the first line, we create a instance of `SparkSession `_ which is the entry of any Spark program working with DataFrame. The ``schema`` variable defines the schema of DataFrame wrapping Iris data. With this explicitly set schema, we can define the columns' name as well as their types; otherwise the column name would be the default ones derived by Spark, such as ``_col0``, etc. Finally, we can use Spark's built-in csv reader to load Iris csv file as a DataFrame named ``rawInput``. Spark also contains many built-in readers for other format. The latest version of Spark supports CSV, JSON, Parquet, and LIBSVM. @@ -130,7 +130,7 @@ labels. A DataFrame like this (containing vector-represented features and numeri Dealing with missing values ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -XGBoost supports missing values by default (`as desribed here `_). +XGBoost supports missing values by default (`as desribed here `_). If given a SparseVector, XGBoost will treat any values absent from the SparseVector as missing. You are also able to specify to XGBoost to treat a specific value in your Dataset as if it was a missing value. By default XGBoost will treat NaN as the value representing missing. @@ -369,7 +369,7 @@ Then we can load this model with single node Python XGBoost: When interacting with other language bindings, XGBoost also supports saving-models-to and loading-models-from file systems other than the local one. You can use HDFS and S3 by prefixing the path with ``hdfs://`` and ``s3://`` respectively. However, for this capability, you must do **one** of the following: - 1. Build XGBoost4J-Spark with the steps described in `here `_, but turning `USE_HDFS `_ (or USE_S3, etc. in the same place) switch on. With this approach, you can reuse the above code example by replacing "nativeModelPath" with a HDFS path. + 1. Build XGBoost4J-Spark with the steps described in :ref:`here `, but turning `USE_HDFS `_ (or USE_S3, etc. in the same place) switch on. With this approach, you can reuse the above code example by replacing "nativeModelPath" with a HDFS path. - However, if you build with USE_HDFS, etc. you have to ensure that the involved shared object file, e.g. libhdfs.so, is put in the LIBRARY_PATH of your cluster. To avoid the complicated cluster environment configuration, choose the other option. diff --git a/doc/parameter.rst b/doc/parameter.rst index f6e78b122122..4f32f88f0512 100644 --- a/doc/parameter.rst +++ b/doc/parameter.rst @@ -366,8 +366,8 @@ Specify the learning task and the corresponding learning objective. The objectiv - ``rank:pairwise``: Use LambdaMART to perform pairwise ranking where the pairwise loss is minimized - ``rank:ndcg``: Use LambdaMART to perform list-wise ranking where `Normalized Discounted Cumulative Gain (NDCG) `_ is maximized - ``rank:map``: Use LambdaMART to perform list-wise ranking where `Mean Average Precision (MAP) `_ is maximized - - ``reg:gamma``: gamma regression with log-link. Output is a mean of gamma distribution. It might be useful, e.g., for modeling insurance claims severity, or for any outcome that might be `gamma-distributed `_. - - ``reg:tweedie``: Tweedie regression with log-link. It might be useful, e.g., for modeling total loss in insurance, or for any outcome that might be `Tweedie-distributed `_. + - ``reg:gamma``: gamma regression with log-link. Output is a mean of gamma distribution. It might be useful, e.g., for modeling insurance claims severity, or for any outcome that might be `gamma-distributed `_. + - ``reg:tweedie``: Tweedie regression with log-link. It might be useful, e.g., for modeling total loss in insurance, or for any outcome that might be `Tweedie-distributed `_. * ``base_score`` [default=0.5] @@ -390,7 +390,7 @@ Specify the learning task and the corresponding learning objective. The objectiv - ``error@t``: a different than 0.5 binary classification threshold value could be specified by providing a numerical value through 't'. - ``merror``: Multiclass classification error rate. It is calculated as ``#(wrong cases)/#(all cases)``. - ``mlogloss``: `Multiclass logloss `_. - - ``auc``: `Receiver Operating Characteristic Area under the Curve `_. + - ``auc``: `Receiver Operating Characteristic Area under the Curve `_. Available for classification and learning-to-rank tasks. - When used with binary classification, the objective should be ``binary:logistic`` or similar functions that work on probability. diff --git a/doc/tutorials/kubernetes.rst b/doc/tutorials/kubernetes.rst index d606858007fd..7d3853eedd34 100644 --- a/doc/tutorials/kubernetes.rst +++ b/doc/tutorials/kubernetes.rst @@ -11,7 +11,7 @@ In order to run a XGBoost job in a Kubernetes cluster, perform the following ste 1. Install XGBoost Operator on the Kubernetes cluster. - a. XGBoost Operator is designed to manage the scheduling and monitoring of XGBoost jobs. Follow `this installation guide `_ to install XGBoost Operator. + a. XGBoost Operator is designed to manage the scheduling and monitoring of XGBoost jobs. Follow `this installation guide `_ to install XGBoost Operator. 2. Write application code that will be executed by the XGBoost Operator. diff --git a/doc/tutorials/saving_model.rst b/doc/tutorials/saving_model.rst index dfc05ac8cdc6..909155e4dd08 100644 --- a/doc/tutorials/saving_model.rst +++ b/doc/tutorials/saving_model.rst @@ -227,15 +227,15 @@ XGBoost has a function called ``dump_model`` in Booster object, which lets you t the model in a readable format like ``text``, ``json`` or ``dot`` (graphviz). The primary use case for it is for model interpretation or visualization, and is not supposed to be loaded back to XGBoost. The JSON version has a `schema -`_. See next section for +`__. See next section for more info. *********** JSON Schema *********** -Another important feature of JSON format is a documented `Schema -`_, based on which one can easily reuse the output model from +Another important feature of JSON format is a documented `schema +`__, based on which one can easily reuse the output model from XGBoost. Here is the initial draft of JSON schema for the output model (not serialization, which will not be stable as noted above). It's subject to change due to the beta status. For an example of parsing XGBoost tree model, see ``/demo/json-model``. diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py index 05b354e21930..457a6f9187e4 100644 --- a/python-package/xgboost/core.py +++ b/python-package/xgboost/core.py @@ -1792,7 +1792,7 @@ def predict( .. note:: See `Prediction - `_ + `_ for issues like thread safety and a summary of outputs from this function. Parameters