Skip to content

Commit

Permalink
small simplification MDL evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Feb 14, 2024
1 parent b59cc84 commit afeefb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/operon/operators/evaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class OPERON_EXPORT MinimumDescriptionLengthEvaluator final : public Evaluator<D

public:
explicit MinimumDescriptionLengthEvaluator(Operon::Problem& problem, DTable const& dtable)
: Base(problem, dtable, sse_), sigma_(1, 0.001)
: Base(problem, dtable, SSE{}), sigma_(1, 0.001)
{
}

Expand All @@ -311,7 +311,6 @@ class OPERON_EXPORT MinimumDescriptionLengthEvaluator final : public Evaluator<D
operator()(Operon::RandomGenerator& /*random*/, Individual& ind, Operon::Span<Operon::Scalar> buf) const -> typename EvaluatorBase::ReturnType override;

private:
Operon::SSE sse_;
mutable std::vector<Operon::Scalar> sigma_;
};

Expand Down

0 comments on commit afeefb2

Please sign in to comment.