From 78d763ebe02021a2252967c8f673961619e6c1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Cendrero=20Almod=C3=B3var?= <42040326+jucendrero@users.noreply.github.com> Date: Fri, 8 Jul 2022 19:09:39 +0200 Subject: [PATCH] Fixed an issue that prevents setting user defined values for nuSq --- src/TopicModel/SLDAModel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TopicModel/SLDAModel.hpp b/src/TopicModel/SLDAModel.hpp index 024acb1..b3e749e 100644 --- a/src/TopicModel/SLDAModel.hpp +++ b/src/TopicModel/SLDAModel.hpp @@ -379,11 +379,11 @@ namespace tomoto { nuSq = Vector::Ones(F); } - else if (args.mu.size() == 1) + else if (args.nuSq.size() == 1) { nuSq = Vector::Constant(F, args.nuSq[0]); } - else if (args.mu.size() == F) + else if (args.nuSq.size() == F) { nuSq = Eigen::Map(args.nuSq.data(), args.nuSq.size()); }