Extra weight optim was probably disabled

Tue, 04 Aug 2026 23:47:29 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 04 Aug 2026 23:47:29 -0500
changeset 94
88d994f2d63d
parent 93
8f1e57821d76
child 95
d9318317ccac

Extra weight optim was probably disabled

src/prox_penalty.rs file | annotate | diff | comparison | revisions
--- a/src/prox_penalty.rs	Thu Aug 06 11:14:15 2026 -0500
+++ b/src/prox_penalty.rs	Tue Aug 04 23:47:29 2026 -0500
@@ -112,7 +112,9 @@
         state: &AlgIteratorIteration<I>,
         mut f: impl FnMut(&Self) -> DynResult<A>,
     ) -> DynResult<Option<A>> {
-        if (self.merging.enabled || self.merging.scaling.is_some())
+        if (self.merging.enabled
+            || self.merging.scaling.is_some()
+            || self.extra_weight_optimisation_steps > 0)
             && state.iteration() % self.merge_every == 0
         {
             if self.max_scaling_iter != 0 && state.iteration() > self.max_scaling_iter {
@@ -138,7 +140,9 @@
         state: &AlgIteratorIteration<I>,
         mut f: impl FnMut() -> A,
     ) -> Option<A> {
-        if (self.merging.enabled || self.merging.scaling.is_some())
+        if (self.merging.enabled
+            || self.merging.scaling.is_some()
+            || self.extra_weight_optimisation_steps > 0)
             && state.iteration() % self.merge_every == 0
         {
             if self.max_scaling_iter != 0 && state.iteration() > self.max_scaling_iter {

mercurial