Add custom evaluate() to SumLazyVariable
@@ -68,6 +68,8 @@ class SumLazyVariable(LazyVariable):
self.lazy_vars, precomputed_cache, test_train_covar.lazy_vars
)
)
+ def evaluate(self):
+ return sum(lazy_var.evaluate() for lazy_var in self.lazy_vars)
def __add__(self, other):
if isinstance(other, ZeroLazyVariable):
