File view_statistic_example_wise_dense.hpp¶
-
namespace boosting
-
class DenseExampleWiseStatisticView : public CompositeMatrix<AllocatedCContiguousView<float64>, AllocatedCContiguousView<float64>>¶
- #include <view_statistic_example_wise_dense.hpp>
Implements row-wise read and write access to the gradients and Hessians that have been calculated using a non-decomposable loss function and are stored in pre-allocated C-contiguous arrays.
Public Types
-
typedef AllocatedCContiguousView<float64>::value_const_iterator gradient_const_iterator¶
An iterator that provides read-only access to the gradients.
-
typedef AllocatedCContiguousView<float64>::value_iterator gradient_iterator¶
An iterator that provides access to the gradients and allows to modify them.
-
typedef AllocatedCContiguousView<float64>::value_const_iterator hessian_const_iterator¶
An iterator that provides read-only access to the Hessians.
-
typedef AllocatedCContiguousView<float64>::value_iterator hessian_iterator¶
An iterator that provides access to the Hessians and allows to modify them.
-
typedef DiagonalConstIterator<float64> hessian_diagonal_const_iterator¶
An iterator that provides read-only access to the Hessians that correspond to the diagonal of the matrix.
Public Functions
-
DenseExampleWiseStatisticView(uint32 numRows, uint32 numCols)¶
- Parameters:
numRows – The number of rows in the view
numCols – The number of columns in the view
-
DenseExampleWiseStatisticView(DenseExampleWiseStatisticView &&other)¶
- Parameters:
other – A reference to an object of type
DenseExampleWiseStatisticView
that should be copied
-
inline virtual ~DenseExampleWiseStatisticView() override¶
-
gradient_const_iterator gradients_cbegin(uint32 row) const¶
Returns a
gradient_const_iterator
to the beginning of the gradients at a specific row.- Parameters:
row – The row
- Returns:
A
gradient_const_iterator
to the beginning of the given row
-
gradient_const_iterator gradients_cend(uint32 row) const¶
Returns a
gradient_const_iterator
to the end of the gradients at a specific row.- Parameters:
row – The row
- Returns:
A
gradient_const_iterator
to the end of the given row
-
gradient_iterator gradients_begin(uint32 row)¶
Returns a
gradient_iterator
to the beginning of the gradients at a specific row.- Parameters:
row – The row
- Returns:
A
gradient_iterator
to the beginning of the given row
-
gradient_iterator gradients_end(uint32 row)¶
Returns a
gradient_iterator
to the end of the gradients at a specific row.- Parameters:
row – The row
- Returns:
A
gradient_iterator
to the end of the given row
-
hessian_const_iterator hessians_cbegin(uint32 row) const¶
Returns a
hessian_const_iterator
to the beginning of the Hessians at a specific row.- Parameters:
row – The row
- Returns:
A
hessian_const_iterator
to the beginning of the given row
-
hessian_const_iterator hessians_cend(uint32 row) const¶
Returns a
hessian_const_iterator
to the end of the Hessians at a specific row.- Parameters:
row – The row
- Returns:
A
hessian_const_iterator
to the end of the given row
-
hessian_diagonal_const_iterator hessians_diagonal_cbegin(uint32 row) const¶
Returns a
hessian_diagonal_const_iterator
to the beginning of the Hessians that correspond to the diagonal of the Hessian matrix at a specific row.- Parameters:
row – The row
- Returns:
A
hessian_diagonal_const_iterator
to the beginning
-
hessian_diagonal_const_iterator hessians_diagonal_cend(uint32 row) const¶
Returns a
hessian_diagonal_const_iterator
to the end of the Hessians that correspond to the diagonal of the Hessian matrix at a specific row.- Parameters:
row – The row
- Returns:
A
hessian_diagonal_const_iterator
to the end
-
hessian_iterator hessians_begin(uint32 row)¶
Returns a
hessian_iterator
to the beginning of the Hessians at a specific row.- Parameters:
row – The row
- Returns:
A
hessian_iterator
to the beginning of the given row
-
hessian_iterator hessians_end(uint32 row)¶
Returns a
hessian_iterator
to the end of the Hessians at a specific row.- Parameters:
row – The row
- Returns:
A
hessian_iterator
to the end of the given row
-
typedef AllocatedCContiguousView<float64>::value_const_iterator gradient_const_iterator¶
-
class DenseExampleWiseStatisticView : public CompositeMatrix<AllocatedCContiguousView<float64>, AllocatedCContiguousView<float64>>¶