Skip to content

Commit

Permalink
Merge pull request #1316 from mrapp-ke/merge-feature
Browse files Browse the repository at this point in the history
Merge feature into main branch
  • Loading branch information
boomer-merge-bot[bot] authored Feb 6, 2025
2 parents 155db25 + a25fb43 commit 8d346f7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,6 @@ class IPrediction : public IIndexVector {
*/
virtual void postProcess(const IPostProcessor& postProcessor) = 0;

/**
* Sets the scores that are stored by this prediction to the values in a given iterator.
*
* @param begin An iterator to the beginning of the values to be set
* @param end An iterator to the end of the values to be set
*/
virtual void set(View<float64>::const_iterator begin, View<float64>::const_iterator end) = 0;

/**
* Sets the scores that are stored by this prediction to the values in a given iterator.
*
* @param begin An iterator to the beginning of the values to be set
* @param end An iterator to the end of the values to be set
*/
virtual void set(BinnedIterator<const float64> begin, BinnedIterator<const float64> end) = 0;

/**
* Creates and returns an object of type `IStatistics::IUpdate` that allows updating given `IStatistics` based
* on this prediction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ class CompletePrediction final : public VectorDecorator<AllocatedVector<float64>

void postProcess(const IPostProcessor& postProcessor) override;

void set(View<float64>::const_iterator begin, View<float64>::const_iterator end) override final;

void set(BinnedIterator<const float64> begin, BinnedIterator<const float64> end) override final;

bool isPartial() const override;

uint32 getIndex(uint32 pos) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ class PartialPrediction final : public ResizableVectorDecorator<VectorDecorator<

void postProcess(const IPostProcessor& postProcessor) override;

void set(View<float64>::const_iterator begin, View<float64>::const_iterator end) override final;

void set(BinnedIterator<const float64> begin, BinnedIterator<const float64> end) override final;

bool isPartial() const override;

uint32 getIndex(uint32 pos) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ void CompletePrediction::postProcess(const IPostProcessor& postProcessor) {
postProcessor.postProcess(this->values_begin(), this->values_end());
}

void CompletePrediction::set(View<float64>::const_iterator begin, View<float64>::const_iterator end) {
util::copyView(begin, this->view.begin(), this->getNumElements());
}

void CompletePrediction::set(BinnedIterator<const float64> begin, BinnedIterator<const float64> end) {
util::copyView(begin, this->view.begin(), this->getNumElements());
}

bool CompletePrediction::isPartial() const {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@ void PartialPrediction::postProcess(const IPostProcessor& postProcessor) {
postProcessor.postProcess(this->values_begin(), this->values_end());
}

void PartialPrediction::set(View<float64>::const_iterator begin, View<float64>::const_iterator end) {
util::copyView(begin, this->view.begin(), this->getNumElements());
}

void PartialPrediction::set(BinnedIterator<const float64> begin, BinnedIterator<const float64> end) {
util::copyView(begin, this->view.begin(), this->getNumElements());
}

bool PartialPrediction::isPartial() const {
return true;
}
Expand Down

0 comments on commit 8d346f7

Please sign in to comment.