Home
libcuml
cucim
cudf-java
cudf
cugraph
cuml
cuproj
cuspatial
cuvs
cuxfilter
dask-cuda
dask-cudf
kvikio
libcudf
libcuml
libcuproj
libcuspatial
libkvikio
libucxx
raft
rapids-cmake
rmm
nightly (24.12)
nightly (24.12)
stable (24.10)
legacy (24.08)
src
decisiontree
batched-levelalgo
dataset.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019-2022, NVIDIA CORPORATION.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#pragma once
18
19
namespace
ML
{
20
namespace
DT {
21
22
template
<
typename
DataT,
typename
LabelT,
typename
IdxT>
23
struct
Dataset
{
25
const
DataT*
data
;
27
const
LabelT*
labels
;
29
IdxT
M
;
31
IdxT
N
;
33
IdxT
n_sampled_rows
;
35
IdxT
n_sampled_cols
;
37
IdxT*
row_ids
;
39
IdxT
num_outputs
;
40
};
41
42
}
// namespace DT
43
}
// namespace ML
ML
Definition:
dbscan.hpp:30
ML::DT::Dataset
Definition:
dataset.h:23
ML::DT::Dataset::row_ids
IdxT * row_ids
Definition:
dataset.h:37
ML::DT::Dataset::N
IdxT N
Definition:
dataset.h:31
ML::DT::Dataset::n_sampled_cols
IdxT n_sampled_cols
Definition:
dataset.h:35
ML::DT::Dataset::num_outputs
IdxT num_outputs
Definition:
dataset.h:39
ML::DT::Dataset::data
const DataT * data
Definition:
dataset.h:25
ML::DT::Dataset::M
IdxT M
Definition:
dataset.h:29
ML::DT::Dataset::n_sampled_rows
IdxT n_sampled_rows
Definition:
dataset.h:33
ML::DT::Dataset::labels
const LabelT * labels
Definition:
dataset.h:27
Generated by
1.9.1