Skip to content

Commit

Permalink
more sensible default sigma for MSL and GaussLik evaluators
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Jan 24, 2024
1 parent 8080aa2 commit 1db1fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/operon/operators/evaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +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, 1) // assume unit variance by default
: Base(problem, dtable, sse_), sigma_(1, 0.001)
{
}

Expand Down Expand Up @@ -356,7 +355,7 @@ class OPERON_EXPORT GaussianLikelihoodEvaluator final : public Evaluator<DTable>

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

Expand Down
1 change: 0 additions & 1 deletion source/operators/evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ namespace Operon {
if (optimizer_ != nullptr && optimizer_->Iterations() > 0) {
auto t0 = std::chrono::steady_clock::now();
auto summary = optimizer_->Optimize(rng, tree);
// auto coefficients = opt.Optimize(targetValues, trainingRange, iter, summary);
ResidualEvaluations += summary.FunctionEvaluations;
JacobianEvaluations += summary.JacobianEvaluations;
if (summary.Success) { tree.SetCoefficients(summary.FinalParameters); }
Expand Down

0 comments on commit 1db1fbc

Please sign in to comment.