Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Support null value in CUDA array interface. #46

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
31a307c
[XGBoost4J-Spark] Serialization for custom objective and eval (#7274)
nicovdijk Oct 21, 2021
864d236
[doc] Remove `num_pbuffer`. [skip ci] (#7356)
trivialfis Oct 22, 2021
e36b066
[doc] Document the status of RTD hosting. [skip ci] (#7353)
trivialfis Oct 22, 2021
fd61c61
Avoid omp reduction in rank metric. (#7349)
trivialfis Oct 22, 2021
a6bcd54
[jvm-packages] Fix for space in sys.executable path in create_jni.py …
nicovdijk Oct 25, 2021
d434942
Re-implement PR-AUC. (#7297)
trivialfis Oct 26, 2021
b9414b6
Update GPU doc for PR-AUC. [skip ci] (#7368)
trivialfis Oct 27, 2021
2eee874
Remove old custom objective demo. (#7369)
trivialfis Oct 27, 2021
ac9bfaa
Handle missing values in dataframe with category dtype. (#7331)
trivialfis Oct 27, 2021
d05754f
Avoid OMP reduction in AUC. (#7362)
trivialfis Oct 27, 2021
3c4aa9b
[breaking] Remove label encoder deprecated in 1.3. (#7357)
trivialfis Oct 28, 2021
6b074ad
Update setup.py. (#7360)
trivialfis Oct 28, 2021
45aef75
Move skl `eval_metric` and `early_stopping rounds` to model params. (…
trivialfis Oct 28, 2021
c676948
Typehint for subset of core API. (#7348)
trivialfis Oct 28, 2021
b81ebbe
[jvm-packages] Fix json4s binary compatibility issue (#7376)
wbo4958 Oct 29, 2021
239dbb3
Move macos test to github action. (#7382)
trivialfis Oct 30, 2021
0f7a9b4
Use double precision in metric calculation. (#7364)
trivialfis Nov 2, 2021
8211e5f
Add clang-format config. (#7383)
trivialfis Nov 2, 2021
6295dc3
Fix span reverse iterator. (#7387)
trivialfis Nov 2, 2021
a133211
Support multi-class with base margin. (#7381)
trivialfis Nov 2, 2021
32e673d
Support building with CTK11.5. (#7379)
trivialfis Nov 2, 2021
154b150
Move callbacks from `fit` to `__init__`. (#7375)
trivialfis Nov 2, 2021
c74df31
Cleanup the `train` function. (#7377)
trivialfis Nov 2, 2021
a55d43c
Add test for invalid categorical data values. (#7380)
trivialfis Nov 2, 2021
e6ab594
Change shebang used in CLI demo. (#7389)
trivialfis Nov 2, 2021
57a4b4f
Handle `OMP_THREAD_LIMIT`. (#7390)
trivialfis Nov 3, 2021
ccdabe4
Support building gradient index with cat data. (#7371)
trivialfis Nov 3, 2021
4100827
Pass infomation about objective to tree methods. (#7385)
trivialfis Nov 3, 2021
232144c
Add note about CRAN release [skip ci] (#7395)
trivialfis Nov 4, 2021
b06040b
Implement a general array view. (#7365)
trivialfis Nov 4, 2021
48aff0e
[doc][jvm-packages] Update information about Python tracker. [skip ci…
trivialfis Nov 4, 2021
c968217
[R] Fix global feature importance and predict with 1 sample. (#7394)
trivialfis Nov 5, 2021
6ede124
Update dmlc-core and use data iter for GPU sampling tests. (#7398)
trivialfis Nov 5, 2021
d7d1b6e
CPU evaluation for cat data. (#7393)
trivialfis Nov 6, 2021
8df0a25
[doc] Update document for GPU. [skip ci] (#7403)
trivialfis Nov 8, 2021
cb68560
[jvm-packages] Rework the train pipeline (#7401)
wbo4958 Nov 10, 2021
97d7582
Delay breaking changes to 1.6. (#7420)
trivialfis Nov 12, 2021
ca6f980
Check number of trees in inplace predict. (#7409)
trivialfis Nov 12, 2021
937fa28
Extract string view. (#7416)
trivialfis Nov 12, 2021
46726ec
Expose build info (#7399)
trivialfis Nov 12, 2021
38ca96c
[CI] Install igraph as binary. (#7417)
trivialfis Nov 12, 2021
8cc75f1
Cleanup Python tests. (#7426)
trivialfis Nov 14, 2021
d27a11f
Fix typos in python package (#7432)
kianmeng Nov 14, 2021
a7057fa
Implement typed storage for tensor. (#7429)
trivialfis Nov 14, 2021
d4274bc
Fix typo. (#7433)
trivialfis Nov 14, 2021
e27f543
Set use_logger in tracker to false. (#7438)
trivialfis Nov 15, 2021
55ee272
Extend array interface to handle ndarray. (#7434)
trivialfis Nov 16, 2021
b0015fd
Fix R CRAN failures. (#7404)
trivialfis Nov 16, 2021
2adf222
[CI] CI cost saving (#7407)
hcho3 Nov 18, 2021
7cfb310
Rework transform (#7440)
wbo4958 Nov 18, 2021
9fb4338
Add test for eta and mitigate float error. (#7446)
trivialfis Nov 18, 2021
d33854a
[Breaking] Accept multi-dim meta info. (#7405)
trivialfis Nov 18, 2021
176110a
Support external memory in CPU histogram building. (#7372)
trivialfis Nov 22, 2021
0552ca8
Fix typo (#7469)
bolongcheng Nov 23, 2021
0c67685
[CI] Add a helper script to aid Maven release (#7470)
hcho3 Nov 23, 2021
5262e93
Remove unnecessary constexpr. (#7466)
trivialfis Nov 23, 2021
b124a27
Support scipy sparse in dask. (#7457)
trivialfis Nov 23, 2021
96a9848
[CI] Fix continuous delivery pipeline for MacOS (#7472)
hcho3 Nov 23, 2021
c024c42
Modernize XGBoost Python document. (#7468)
trivialfis Nov 23, 2021
488f12a
Fix github macos package upload. (#7474)
trivialfis Nov 23, 2021
820e1c0
Fix macos package upload. (#7475)
trivialfis Nov 23, 2021
619c450
[CI] Add missing step extract_branch (#7479)
hcho3 Nov 24, 2021
24be04e
[jvm-packages] Add DeviceQuantileDMatrix to Scala binding (#7459)
wbo4958 Nov 24, 2021
bf7bb57
Test CPU histogram with cat data. (#7465)
trivialfis Nov 26, 2021
557ffc4
Reduce base margin to 2 dim for now. (#7455)
trivialfis Nov 26, 2021
6f38f5a
Updated CMake version requirement in build.rst (#7487)
Nov 27, 2021
85cbd32
Add range-based slicing to tensor view. (#7453)
trivialfis Nov 27, 2021
eee527d
Add approx partitioner. (#7467)
trivialfis Nov 27, 2021
021f8bf
Fix pylint. (#7498)
trivialfis Dec 7, 2021
1864fab
Minor edits to Parameters doc page. (#7500)
bolongcheng Dec 7, 2021
01152f8
Remove unused parameters. (#7499)
trivialfis Dec 9, 2021
05497a9
[dask] Fix asyncio. (#7508)
trivialfis Dec 12, 2021
a512b4b
[doc] Promote dask from experimental. [skip ci] (#7509)
trivialfis Dec 16, 2021
70b12d8
[dask] Fix ddqdm with empty partition. (#7510)
trivialfis Dec 16, 2021
6f8a463
Fix Python typehint with upgraded mypy. (#7513)
trivialfis Dec 16, 2021
5b1161b
Convert labels into tensor. (#7456)
trivialfis Dec 16, 2021
24e2580
[jvm-packages] Add Rapids plugin support (#7491)
wbo4958 Dec 17, 2021
b4a1236
[doc] Update the link to the tuning example in FLAML
qingyun-wu Dec 17, 2021
9ab73f7
Extract Sketch Entry from hist maker. (#7503)
trivialfis Dec 17, 2021
58a6723
Initial support for multioutput regression. (#7514)
trivialfis Dec 18, 2021
59bd1ab
Skip callback demo test if matplotlib is not installed (#7520)
xwu99 Dec 19, 2021
e8c1eb9
[jvm-package] Clean up the legacy gpu support tests (#7523)
wbo4958 Dec 21, 2021
eabec37
[R] Fix single sample prediction. (#7524)
trivialfis Dec 21, 2021
7f399ea
Use double for GPU Hist node sum. (#7507)
trivialfis Dec 22, 2021
29bfa94
Fix external memory with gpu_hist and subsampling combination bug. (#…
GinkoBalboa Dec 24, 2021
3886c3d
Remove macro definitions of snprintf and vsnprintf (#7536)
ldesreumaux Dec 26, 2021
a4a0ebb
[doc] Lowercase omega for per tree complexity (#7532)
vertexcite Dec 29, 2021
5516281
Fix typo in tree_model.cc (#7539)
eltociear Dec 30, 2021
68cdbc9
Remove `omp_get_max_threads` in CPU predictor. (#7519)
trivialfis Jan 4, 2022
8f0a42a
Initial support for multi-label classification. (#7521)
trivialfis Jan 4, 2022
eb1efb5
Define `feature_names_in_`. (#7526)
trivialfis Jan 4, 2022
54582f6
[doc] Use cross references in sphinx doc. (#7522)
trivialfis Jan 4, 2022
ec56d58
[doc] Include dask examples into doc. (#7530)
trivialfis Jan 4, 2022
eea094e
Remove some warnings from clang. (#7533)
trivialfis Jan 4, 2022
28af6f9
Remove `omp_get_max_threads` in gbm and linear. (#7537)
trivialfis Jan 4, 2022
0df2ae6
Fix num_boosted_rounds for linear model. (#7538)
trivialfis Jan 4, 2022
91c1a1c
Fix index type for bitfield. (#7541)
trivialfis Jan 5, 2022
ed95e77
[jvm-packages] Update JNI header. (#7550)
trivialfis Jan 10, 2022
0015031
Rewrite approx (#7214)
trivialfis Jan 10, 2022
c635d4c
Implement ubjson. (#7549)
trivialfis Jan 10, 2022
2db8080
Silent some warnings for unused variable. (#7548)
trivialfis Jan 10, 2022
20c0d60
Restore functionality of max_depth=0 in hist (#7551)
hcho3 Jan 10, 2022
e5e47c3
Clarify the behavior of invalid categorical value handling. (#7529)
trivialfis Jan 13, 2022
e94b766
Fix early stopping with linear model. (#7554)
trivialfis Jan 13, 2022
52277cc
Rename build info function to be consistent with rest of the API. (#7…
trivialfis Jan 13, 2022
13b0fa4
Implement `get_group`. (#7564)
trivialfis Jan 15, 2022
a1bcd33
[breaking] Change internal model serialization to UBJSON. (#7556)
trivialfis Jan 15, 2022
465dc63
Fix tree param feature type. (#7565)
trivialfis Jan 15, 2022
d6ea5cc
Cover approx tree method for categorical data tests. (#7569)
trivialfis Jan 16, 2022
deab0e3
Validate out of range categorical value. (#7576)
trivialfis Jan 18, 2022
cc06fab
Support distributed CPU env for categorical data. (#7575)
trivialfis Jan 18, 2022
bb56bb9
Fix merge conflict. (#7577)
trivialfis Jan 18, 2022
9f20a33
Test with latest numpy. (#7573)
trivialfis Jan 18, 2022
dac9eb1
Implement new `save_raw` in Python. (#7572)
trivialfis Jan 18, 2022
b4ec168
Update document for multi output and categorical. (#7574)
trivialfis Jan 18, 2022
ac7a363
[jvm-packages] Implement new `save_raw` in jvm-packages. (#7570)
trivialfis Jan 19, 2022
529cf8a
Configure cub version automatically. (#7579)
trivialfis Jan 20, 2022
9fd510f
[CI] Clarify steps for publishing artifacts to Maven Central (#7582)
hcho3 Jan 20, 2022
5ddd4a9
Small cleanup to tests. (#7585)
trivialfis Jan 21, 2022
ef4dae4
[dask] Add scheduler address to dask config. (#7581)
trivialfis Jan 21, 2022
d262503
[R] Implement new save raw in R. (#7571)
trivialfis Jan 22, 2022
f84291c
Fix `max_cat_to_onehot` doc annotation [skip ci] (#7592)
trivialfis Jan 23, 2022
5817840
Remove `omp_get_max_threads` in data. (#7588)
trivialfis Jan 23, 2022
6967ef7
Remove `omp_get_max_threads` in objective. (#7589)
trivialfis Jan 23, 2022
511805c
Compress fatbins (#7601)
ajschmidt8 Jan 25, 2022
2478942
Support latest pandas Index type. (#7595)
trivialfis Jan 26, 2022
5d7818e
Remove `omp_get_max_threads` in tree updaters. (#7590)
trivialfis Jan 26, 2022
e060519
Avoid regenerating the gradient index for approx. (#7591)
trivialfis Jan 26, 2022
028bdc1
[R] Fix typo in docstring (#7606)
hcho3 Jan 26, 2022
8121042
Remove `omp_get_max_threads` (#7608)
trivialfis Jan 28, 2022
f21301c
[Doc] Add instruction to install XGBoost for Apple Silicon using Cond…
hcho3 Jan 28, 2022
549bd41
use exit hook to remove temp file (#7611)
MichaelChirico Jan 29, 2022
7f738e7
[R] Accept CSR data for predictions (#7615)
david-cortes Jan 29, 2022
b4340ab
Add special handling for multi:softmax in sklearn predict (#7607)
hcho3 Jan 29, 2022
c621775
Replace all uses of deprecated function sklearn.datasets.load_boston …
hcho3 Jan 30, 2022
271a7c5
[Doc] fix typo in install doc (#7623)
hcho3 Jan 31, 2022
f6e6d0b
[CI] Build Python wheels for MacOS (x86_64 and arm64) (#7621)
hcho3 Feb 3, 2022
34a238c
[CI] Clean up Python wheel build pipeline (#7626)
hcho3 Feb 3, 2022
d152c59
fixed broken link to Seldon XGBoost server (#7628)
edshee Feb 4, 2022
3e693e4
[dask] Fix nthread config with dask sklearn wrapper. (#7633)
trivialfis Feb 7, 2022
926af99
Add missing train parameter for sklearn interface. (#7629)
trivialfis Feb 8, 2022
fe4ce92
[dask] Cleanup dask module. (#7634)
trivialfis Feb 8, 2022
87c01f4
Bump hadoop-common from 2.7.3 to 2.10.1 in /jvm-packages/xgboost4j-fl…
dependabot[bot] Feb 10, 2022
2775c2a
Prepare external memory support for hist. (#7638)
trivialfis Feb 10, 2022
1441a6c
[CI] Update R cache. (#7646)
trivialfis Feb 11, 2022
1f020a6
Add maintainer for R package. (#7649)
trivialfis Feb 12, 2022
b52c4e1
[dask] Fix empty partition with pandas input. (#7644)
trivialfis Feb 14, 2022
5cd1f71
[dask] Improve configuration for port. (#7645)
trivialfis Feb 14, 2022
2369d55
Add tests for prediction cache. (#7650)
trivialfis Feb 14, 2022
0d0abe1
Support optimal partitioning for GPU hist. (#7652)
trivialfis Feb 14, 2022
0da7d87
[doc] Update for prediction. (#7648)
trivialfis Feb 14, 2022
93eebe8
[doc] Fix broken link. [skip ci] (#7655)
trivialfis Feb 15, 2022
0149f81
[CI] Fix S3 upload (#7662)
hcho3 Feb 16, 2022
12949c6
[R] Implement feature weights. (#7660)
trivialfis Feb 16, 2022
711f7f3
Avoid `std::terminate` for R package. (#7661)
trivialfis Feb 16, 2022
3877043
Avoid print for R package. (#7672)
trivialfis Feb 18, 2022
d625dc2
Work around nvcc error. (#7673)
trivialfis Feb 18, 2022
14d61b0
[doc] Update document for building from source. (#7664)
trivialfis Feb 18, 2022
7366d3b
Ensure models with categorical splits don't use old binary format. (#…
trivialfis Feb 19, 2022
b76c5d5
Define export symbols in callback module. (#7665)
trivialfis Feb 19, 2022
f08c5dc
Cleanup some pylint errors. (#7667)
trivialfis Feb 19, 2022
131858e
[jvm-packages] Do not repartition when nWorker = 1 (#7676)
wbo4958 Feb 19, 2022
b2341ea
[R] Fix broken links. (#7670)
trivialfis Feb 19, 2022
671b3c8
Fix typo. (#7680)
trivialfis Feb 19, 2022
549f3bd
Honor CPU counts from CFS. (#7654)
trivialfis Feb 20, 2022
e56d177
Require Python 3.7. (#7682)
trivialfis Feb 20, 2022
584bae1
Fix document build with scikit-learn (#7684)
trivialfis Feb 22, 2022
c859764
[doc] Clarify that states in callbacks are mutated. (#7685)
trivialfis Feb 22, 2022
e3e6de5
[jvm-packages] unify the set features API (#7692)
wbo4958 Feb 22, 2022
49c74a5
Update R package description. (#7691)
trivialfis Feb 23, 2022
6762c45
Small cleanup to gradient index and hist. (#7668)
trivialfis Feb 23, 2022
89aa8dd
[jvm-packages] fix the prediction issue for multi:softmax (#7694)
wbo4958 Feb 23, 2022
f60d95b
[R] Construct booster object in `load.raw`. (#7686)
trivialfis Feb 24, 2022
83a66b4
Support categorical data for hist. (#7695)
trivialfis Feb 24, 2022
1b25dd5
Use CUDA 11 in clang-tidy (#7701)
hcho3 Feb 24, 2022
5eed299
Fix file descriptor leak. (#7704)
trivialfis Feb 25, 2022
18a4af6
Update documents and tests. (#7659)
trivialfis Feb 25, 2022
1d468e2
Optimize GPU evaluation function for categorical data. (#7705)
trivialfis Feb 28, 2022
a92e0f6
multi groups in the constraints (#7711)
lichengphysics Mar 1, 2022
68b6d6b
Fix for Feature shape mismatch error (#7715)
pradghos Mar 3, 2022
a62a3d9
[dask] prediction with categorical data. (#7708)
trivialfis Mar 9, 2022
55463b7
Initialize TreeUpdater ctx_ with nullptr (#7722)
hmchen-github Mar 10, 2022
04fc575
Run tests in a temporary directory (#7723)
hmchen-github Mar 12, 2022
4dafb5f
[JVM-Packages] Add support for detecting musl-based Linux (#7624)
snoopcheri Mar 13, 2022
98d6fae
Implement slope for Pseduo-Huber. (#7727)
trivialfis Mar 14, 2022
6b6849b
Correct xgboost-config directory for inclusion in other projects (#7730)
wphicks Mar 14, 2022
613ec36
Support building SimpleDMatrix from Arrow data format (#7512)
xwu99 Mar 15, 2022
e78a38b
Sort sparse page index when constructing DMatrix. (#7731)
trivialfis Mar 16, 2022
da35162
[R] Fix parsing decision stump. (#7689)
trivialfis Mar 16, 2022
9a40073
Replace device sync with stream sync. (#7737)
trivialfis Mar 19, 2022
718472d
[CI] Upgrade GitHub action Windows workers. (#7739)
trivialfis Mar 19, 2022
996cc70
Small cleanup to hist tree method. (#7735)
trivialfis Mar 19, 2022
cd55823
Demo for using custom objective with multi-target regression. (#7736)
trivialfis Mar 20, 2022
4d81c74
External memory support for hist (#7531)
trivialfis Mar 21, 2022
f20ffa8
Update JVM dev build Dockerfile and shell script (#6792)
AgingChan Mar 22, 2022
66cb4af
Update install doc (#7747)
hcho3 Mar 23, 2022
c92ab2c
Add type hints to core.py (#7707)
bridgream Mar 23, 2022
f5b2028
[jvm-packages] Launch dev jvm image under my user (#4676)
trams Mar 23, 2022
6457559
Use context in `SetInfo`. (#7687)
trivialfis Mar 24, 2022
af0cf88
Workaround compiler error. (#7745)
trivialfis Mar 25, 2022
b3ba0e8
Check cupy lazily. (#7752)
trivialfis Mar 25, 2022
b37ff3d
Fix cox objective test by using XGBOOST_PARALLEL_STABLE_SORT (#7756)
hmchen-github Mar 26, 2022
39c5616
Added CPPFLAGS and LDFLAGS to the testing for OpenMP during R install…
cmarquardt Mar 28, 2022
8b3ecfc
Mitigate flaky tests. (#7749)
trivialfis Mar 28, 2022
3c9b044
Move `num_parallel_tree` to model parameter. (#7751)
trivialfis Mar 28, 2022
a50b842
Cleanup configuration for constraints. (#7758)
trivialfis Mar 28, 2022
d479648
Fix failures on R hub and Win builder. (#7763)
trivialfis Mar 29, 2022
9150fdb
Support pandas nullable types. (#7760)
trivialfis Mar 30, 2022
4bd5a33
Make rc1 release. (#7764)
trivialfis Mar 30, 2022
4615fa5
Drop support for deprecated CUDA architecture. (#7767)
trivialfis Mar 30, 2022
78d2312
[CI] Enable faulthandler to show details when 0xC0000005 error occurs…
hcho3 Mar 31, 2022
67298cc
[backport] Backport JVM fixes and document update to 1.6 (#7792)
trivialfis Apr 8, 2022
ece4dc4
[backport] Backport jvm changes to 1.6. (#7803)
trivialfis Apr 13, 2022
3ee3b18
[doc] fix a typo in jvm/index.rst (#7806) [skip ci] (#7807)
trivialfis Apr 14, 2022
816e788
[backport] #7808 #7810 (#7811)
trivialfis Apr 15, 2022
f75c007
Make 1.6.0 release. (#7813)
trivialfis Apr 16, 2022
f4eb6b9
[backport] jvm-packages 1.6.1 (#7849)
trivialfis Apr 29, 2022
b1b6246
[backport] Always use partition based categorical splits. (#7857) (#7…
trivialfis May 6, 2022
c250881
[backport] Use maximum category in sketch. (#7853) (#7866)
trivialfis May 6, 2022
5d92a7d
Bump release version to 1.6.1. (#7872)
trivialfis May 8, 2022
eefa1dd
[CI] Rotate package repository keys (#7943) (#7978)
trivialfis Jun 6, 2022
645855e
[backport] Fix arrow compatibility, hypothesis tests. (#7979)
trivialfis Jun 6, 2022
b7c3fc9
Fix overflow in prediction size. (#7885) (#7980)
trivialfis Jun 7, 2022
5973c6e
Fix rmm build (#7973) (#7977)
trivialfis Jun 7, 2022
a55d3bd
[backport] Fix pylint errors. (#7967) (#7981)
trivialfis Jun 7, 2022
39c1488
[backport] Update CUDA docker image and NCCL. (#8139) (#8162)
trivialfis Aug 12, 2022
140c377
[backport] Fix compatibility with latest cupy. (#8129) (#8160)
trivialfis Aug 12, 2022
9c65337
Fix monotone constraint with tuple input. (#7891) (#8159)
trivialfis Aug 12, 2022
9d816d9
[CI] Test with latest RAPIDS. (#7816) (#8164)
trivialfis Aug 12, 2022
97d89c3
[dask] Use an invalid port for test. (#8064) (#8167)
trivialfis Aug 15, 2022
0e2b5c4
Verify shared object version at load. (#7928) (#8168)
trivialfis Aug 15, 2022
2e6444b
[backport] Limit `max_depth` to 30 for GPU. (#8098) (#8169)
trivialfis Aug 15, 2022
b18c984
[dask] Deterministic rank assignment. (#8018) (#8165)
trivialfis Aug 15, 2022
e82162d
[backport] Fix Python package source install. (#8036) (#8171)
trivialfis Aug 15, 2022
51c3301
[backport] Fix LTR with weighted Quantile DMatrix. (#7975) (#8170)
trivialfis Aug 15, 2022
2d54f7d
Make 1.6.2 patch release. (#8175)
trivialfis Aug 16, 2022
7036d4f
Disable modin test on 1.6.0 branch. (#8176)
trivialfis Aug 17, 2022
922d213
[CI] Fix R build on Jenkins. (#8154) (#8180)
hcho3 Aug 18, 2022
0fd6391
[backport] Fix loading DMatrix binary in distributed env. (#8149) (#8…
trivialfis Aug 18, 2022
1fbb452
Fix release script. (#8187)
trivialfis Aug 21, 2022
b993424
Fix typo. (#8192)
trivialfis Aug 22, 2022
b400967
Add missing Thrust header includes.
bdice Aug 29, 2022
2e1e95e
Merge pull request #39 from bdice/thrust-includes
ajschmidt8 Aug 30, 2022
26ea6e2
Update gputreeshap submodule.
bdice Aug 31, 2022
3732123
Merge pull request #40 from bdice/update-gputreeshap
ajschmidt8 Sep 1, 2022
e6d5624
Merge branch 'release_1.6.0' of https://github.com/dmlc/xgboost into …
beckernick Oct 4, 2022
1a2012d
Merge pull request #41 from beckernick/patch-1.6-cupy
AyodeAwe Oct 11, 2022
e6756c7
Merge pull request #42 from rapidsai/branch-22.10
AyodeAwe Oct 11, 2022
f6c429a
Simple tests.
trivialfis Nov 28, 2022
4fe8204
Extract mask.
trivialfis Nov 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
214 changes: 214 additions & 0 deletions .clang-format
@@ -0,0 +1,214 @@
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
QualifierAlignment: Leave
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: true
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
PackConstructorInitializers: NextLine
BasedOnStyle: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 3
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseLabels: true
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 2
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyIndentedWhitespace: 0
PointerAlignment: Left
PPIndentWidth: -1
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
- ParseTestProto
- ParsePartialTestProto
CanonicalDelimiter: pb
BasedOnStyle: google
ReferenceAlignment: Pointer
ReflowComments: true
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Auto
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...
2 changes: 1 addition & 1 deletion .github/workflows/jvm_tests.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-latest, macos-10.15]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -21,10 +21,7 @@ jobs:
submodules: 'true'
- name: Install system packages
run: |
# Use libomp 11.1.0: https://github.com/dmlc/xgboost/issues/7039
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/679923b4eb48a8dc7ecc1f05d06063cd79b3fc00/Formula/libomp.rb -O $(find $(brew --repository) -name libomp.rb)
brew install ninja libomp
brew pin libomp
- name: Build gtest binary
run: |
mkdir build
Expand Down
66 changes: 57 additions & 9 deletions .github/workflows/python_tests.yml
Expand Up @@ -17,10 +17,7 @@ jobs:
- name: Install osx system dependencies
if: matrix.os == 'macos-10.15'
run: |
# Use libomp 11.1.0: https://github.com/dmlc/xgboost/issues/7039
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/679923b4eb48a8dc7ecc1f05d06063cd79b3fc00/Formula/libomp.rb -O $(find $(brew --repository) -name libomp.rb)
brew install ninja libomp
brew pin libomp
- name: Install Ubuntu system dependencies
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -45,13 +42,13 @@ jobs:
cd ..
python -c 'import xgboost'

python-tests:
python-tests-on-win:
name: Test XGBoost Python package on ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: windows-2016, compiler: 'msvc', python-version: '3.8'}
- {os: windows-latest, python-version: '3.8'}

steps:
- uses: actions/checkout@v2
Expand All @@ -62,7 +59,7 @@ jobs:
with:
auto-update-conda: true
python-version: ${{ matrix.config.python-version }}
activate-environment: win64_test
activate-environment: win64_env
environment-file: tests/ci_build/conda_env/win64_cpu_test.yml

- name: Display Conda env
Expand All @@ -71,13 +68,12 @@ jobs:
conda info
conda list

- name: Build XGBoost with msvc
- name: Build XGBoost on Windows
shell: bash -l {0}
if: matrix.config.compiler == 'msvc'
run: |
mkdir build_msvc
cd build_msvc
cmake .. -G"Visual Studio 15 2017" -DCMAKE_CONFIGURATION_TYPES="Release" -A x64 -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON
cmake .. -G"Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES="Release" -A x64 -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON
cmake --build . --config Release --parallel $(nproc)

- name: Install Python package
Expand All @@ -92,3 +88,55 @@ jobs:
shell: bash -l {0}
run: |
pytest -s -v ./tests/python

python-tests-on-macos:
name: Test XGBoost Python package on ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: macos-10.15, python-version "3.8" }

steps:
- uses: actions/checkout@v2
with:
submodules: 'true'

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.config.python-version }}
activate-environment: macos_test
environment-file: tests/ci_build/conda_env/macos_cpu_test.yml

- name: Display Conda env
shell: bash -l {0}
run: |
conda info
conda list

- name: Build XGBoost on macos
shell: bash -l {0}
run: |
brew install ninja

mkdir build
cd build
# Set prefix, to use OpenMP library from Conda env
# See https://github.com/dmlc/xgboost/issues/7039#issuecomment-1025038228
# to learn why we don't use libomp from Homebrew.
cmake .. -GNinja -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
ninja

- name: Install Python package
shell: bash -l {0}
run: |
cd python-package
python --version
python setup.py bdist_wheel --universal
pip install ./dist/*.whl

- name: Test Python package
shell: bash -l {0}
run: |
pytest -s -v ./tests/python
38 changes: 38 additions & 0 deletions .github/workflows/python_wheels.yml
@@ -0,0 +1,38 @@
name: XGBoost-Python-Wheels

on: [push, pull_request]

jobs:
python-wheels:
name: Build wheel for ${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
platform_id: macosx_x86_64
- os: macos-latest
platform_id: macosx_arm64
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build wheels
run: bash tests/ci_build/build_python_wheels.sh ${{ matrix.platform_id }} ${{ github.sha }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
if: github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')
- name: Upload Python wheel
if: github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')
run: |
python -m pip install awscli
python -m awscli s3 cp wheelhouse/*.whl s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/ --acl public-read
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}