Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,18 +352,10 @@ if(BUILD_CUML_CPP_LIBRARY)
if(all_algo OR decisiontree_algo)
target_sources(
cuml_objs
PRIVATE src/decisiontree/batched-levelalgo/kernels/entropy-double.cu
src/decisiontree/batched-levelalgo/kernels/entropy-float.cu
src/decisiontree/batched-levelalgo/kernels/gamma-double.cu
src/decisiontree/batched-levelalgo/kernels/gamma-float.cu
src/decisiontree/batched-levelalgo/kernels/gini-double.cu
src/decisiontree/batched-levelalgo/kernels/gini-float.cu
src/decisiontree/batched-levelalgo/kernels/inverse_gaussian-double.cu
src/decisiontree/batched-levelalgo/kernels/inverse_gaussian-float.cu
src/decisiontree/batched-levelalgo/kernels/mse-double.cu
src/decisiontree/batched-levelalgo/kernels/mse-float.cu
src/decisiontree/batched-levelalgo/kernels/poisson-double.cu
src/decisiontree/batched-levelalgo/kernels/poisson-float.cu
PRIVATE src/decisiontree/batched-levelalgo/kernels/classification-double.cu
src/decisiontree/batched-levelalgo/kernels/classification-float.cu
src/decisiontree/batched-levelalgo/kernels/regression-double.cu
src/decisiontree/batched-levelalgo/kernels/regression-float.cu
src/decisiontree/decisiontree.cu
)
endif()
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/decisiontree/batched-levelalgo/builder.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ struct Builder {
int len_histograms = n_bins * n_classes * n_blocks_dimy * n_large_nodes;
RAFT_CUDA_TRY(cudaMemsetAsync(histograms, 0, sizeof(BinT) * len_histograms, builder_stream));
// create the objective function object
ObjectiveT objective(dataset.num_outputs, params.min_samples_leaf);
ObjectiveT objective(dataset.num_outputs, params.min_samples_leaf, params.split_criterion);
// call the computeSplitKernel
raft::common::nvtx::range kernel_scope("computeSplitKernel @builder.cuh [batched-levelalgo]");
launchComputeSplitKernel<DataT, LabelT, IdxT, TPB_DEFAULT>(histograms,
Expand Down Expand Up @@ -556,7 +556,7 @@ struct Builder {
rmm::device_uvector<InstanceRange> d_instance_ranges(max_batch_size, builder_stream);
rmm::device_uvector<DataT> d_leaves(max_batch_size * dataset.num_outputs, builder_stream);

ObjectiveT objective(dataset.num_outputs, params.min_samples_leaf);
ObjectiveT objective(dataset.num_outputs, params.min_samples_leaf, params.split_criterion);
for (std::size_t batch_begin = 0; batch_begin < tree->sparsetree.size();
batch_begin += max_batch_size) {
std::size_t batch_end = min(batch_begin + max_batch_size, tree->sparsetree.size());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2019-2026, NVIDIA CORPORATION.
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -13,7 +13,7 @@ namespace DT {
using _DataT = double;
using _LabelT = int;
using _IdxT = int;
using _ObjectiveT = EntropyObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _ObjectiveT = ClassificationObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _BinT = CountBin;
using _DatasetT = Dataset<_DataT, _LabelT, _IdxT>;
using _NodeT = SparseTreeNode<_DataT, _LabelT, _IdxT>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2019-2026, NVIDIA CORPORATION.
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -13,7 +13,7 @@ namespace DT {
using _DataT = float;
using _LabelT = int;
using _IdxT = int;
using _ObjectiveT = EntropyObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _ObjectiveT = ClassificationObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _BinT = CountBin;
using _DatasetT = Dataset<_DataT, _LabelT, _IdxT>;
using _NodeT = SparseTreeNode<_DataT, _LabelT, _IdxT>;
Expand Down
23 changes: 0 additions & 23 deletions cpp/src/decisiontree/batched-levelalgo/kernels/gamma-double.cu

This file was deleted.

23 changes: 0 additions & 23 deletions cpp/src/decisiontree/batched-levelalgo/kernels/gamma-float.cu

This file was deleted.

23 changes: 0 additions & 23 deletions cpp/src/decisiontree/batched-levelalgo/kernels/gini-double.cu

This file was deleted.

23 changes: 0 additions & 23 deletions cpp/src/decisiontree/batched-levelalgo/kernels/gini-float.cu

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions cpp/src/decisiontree/batched-levelalgo/kernels/poisson-float.cu

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2019-2026, NVIDIA CORPORATION.
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -13,7 +13,7 @@ namespace DT {
using _DataT = double;
using _LabelT = double;
using _IdxT = int;
using _ObjectiveT = MSEObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _ObjectiveT = RegressionObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _BinT = AggregateBin;
using _DatasetT = Dataset<_DataT, _LabelT, _IdxT>;
using _NodeT = SparseTreeNode<_DataT, _LabelT, _IdxT>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2019-2026, NVIDIA CORPORATION.
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -13,7 +13,7 @@ namespace DT {
using _DataT = float;
using _LabelT = float;
using _IdxT = int;
using _ObjectiveT = MSEObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _ObjectiveT = RegressionObjectiveFunction<_DataT, _LabelT, _IdxT>;
using _BinT = AggregateBin;
using _DatasetT = Dataset<_DataT, _LabelT, _IdxT>;
using _NodeT = SparseTreeNode<_DataT, _LabelT, _IdxT>;
Expand Down
Loading
Loading