Skip to content

Commit

Permalink
Merge pull request opencog#30 from ngeiswei/merge-opencog-to-singnet
Browse files Browse the repository at this point in the history
Merge opencog -> singnet
  • Loading branch information
ngeiswei authored Aug 5, 2021
2 parents e5318ac + f279740 commit c299165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opencog/ure/MixtureModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TruthValuePtr MixtureModel::operator()() const

std::vector<TruthValuePtr> tvs;
std::vector<double> weights;
for (const Handle model : models) {
for (const Handle& model : models) {
double weight = prior_estimate(model) * beta_factor(model);
LAZY_URE_LOG_FINE << "MixtureModel::operator model = " << model->id_to_string()
<< ", weight = " << weight;
Expand Down
2 changes: 1 addition & 1 deletion opencog/ure/backwardchainer/ControlPolicy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Handle ControlPolicy::mk_expansion_control_rules_query(const Handle& inf_rule,
// ImplicationScope with a pattern in its antecedent to
// retrieve
HandleSeq antecedents{in_preproof_eval, expand_exec};
for (const Handle pv : pattern_vars)
for (const Handle& pv : pattern_vars)
antecedents.push_back(al(UNQUOTE_LINK, pv));
Handle pat_expand_preproof_impl = al(QUOTE_LINK,
al(IMPLICATION_SCOPE_LINK,
Expand Down

0 comments on commit c299165

Please sign in to comment.