File view_statistic_decomposable_sparse.hpp¶
-
namespace seco
-
class SparseDecomposableStatisticView : public CompositeMatrix<AllocatedListOfLists<uint32>, AllocatedListOfLists<uint32>>¶
- #include <view_statistic_decomposable_sparse.hpp>
Implements row-wise read and write access to confusion matrices that are stored in a pre-allocated sparse matrix in the list of lists (LIL) format.
Public Types
-
using const_row = typename ListOfLists<uint32>::const_row¶
Provides read-only access to an individual row in the view.
-
using row = typename ListOfLists<uint32>::row¶
Provides access to an individual row in the view and allows to modify it.
-
using index_iterator = typename ListOfLists<uint32>::value_iterator¶
An iterator that provides access to the indices individual confusion matrix elements in the view correspond to and allows to modify them.
-
using index_const_iterator = typename ListOfLists<uint32>::value_const_iterator¶
An iterator that provides read-only access to the indices individual confusion matrix elements in the view correspond to.
Public Functions
-
SparseDecomposableStatisticView(uint32 numRows, uint32 numCols)¶
- Parameters:
numRows – The number of rows in the view
numCols – The number of columns in the view
-
SparseDecomposableStatisticView(SparseDecomposableStatisticView &&other)¶
- Parameters:
other – A reference to an object of type
SparseDecomposableStatisticViewthat should be copied
-
inline virtual ~SparseDecomposableStatisticView() override¶
-
index_const_iterator correct_indices_cbegin(uint32 row) const¶
Returns an
index_const_iteratorto the beginning of the indices at a specific row that correspond to the labels for which a rule predicts correctly.- Parameters:
row – The row
- Returns:
An
index_const_iteratorto the beginning of the given row
-
index_const_iterator correct_indices_cend(uint32 row) const¶
Returns an
index_const_iteratorto the end of the indices at a specific row that correspond to the labels for which a rule predicts correctly.- Parameters:
row – The row
- Returns:
An
index_const_iteratorto the end of the given row
-
index_iterator correct_indices_begin(uint32 row)¶
Returns an
index_iteratorto the beginning of the indices at a specific row that correspond to the labels for which a rule predicts correctly.- Parameters:
row – The row
- Returns:
An
index_iteratorto the beginning of the given row
-
index_iterator correct_indices_end(uint32 row)¶
Returns an
index_iteratorto the end of the indices at a specific row that correspond to the labels for which a rule predicts correctly.- Parameters:
row – The row
- Returns:
An
index_iteratorto the end of the given row
-
const_row correct_indices_const_row(uint32 row) const¶
Returns a view that provides read-only access to a specific row in the view that correspond to the labels for which a rule predicts correctly.
- Parameters:
row – The index of the row
- Returns:
-
row correct_indices_row(uint32 row)¶
Returns a view that provides access to a specific row in the view that correspond to the labels for which a rule predicts correctly and allows to modify it.
- Parameters:
row – The index of the row
- Returns:
A
row
-
index_const_iterator incorrect_indices_cbegin(uint32 row) const¶
Returns an
index_const_iteratorto the beginning of the indices at a specific row that correspond to the labels for which a rule predicts incorrectly.- Parameters:
row – The row
- Returns:
An
index_const_iteratorto the beginning of the given row
-
index_const_iterator incorrect_indices_cend(uint32 row) const¶
Returns an
index_const_iteratorto the end of the indices at a specific row that correspond to the labels for which a rule predicts incorrectly.- Parameters:
row – The row
- Returns:
An
index_const_iteratorto the end of the given row
-
index_iterator incorrect_indices_begin(uint32 row)¶
Returns an
index_iteratorto the beginning of the indices at a specific row that correspond to the labels for which a rule predicts incorrectly.- Parameters:
row – The row
- Returns:
An
index_iteratorto the beginning of the given row
-
index_iterator incorrect_indices_end(uint32 row)¶
Returns an
index_iteratorto the end of the indices at a specific row that correspond to the labels for which a rule predicts incorrectly.- Parameters:
row – The row
- Returns:
An
index_iteratorto the end of the given row
-
using const_row = typename ListOfLists<uint32>::const_row¶
-
class SparseDecomposableStatisticView : public CompositeMatrix<AllocatedListOfLists<uint32>, AllocatedListOfLists<uint32>>¶