Skip to content

Commit

Permalink
Merge pull request #174 from jucendrero/patch-1
Browse files Browse the repository at this point in the history
Fixed an issue that prevents setting user defined values for nuSq
  • Loading branch information
bab2min authored Jul 9, 2022
2 parents d30964c + 78d763e commit 3d50ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TopicModel/SLDAModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const Vector>(args.nuSq.data(), args.nuSq.size());
}
Expand Down

0 comments on commit 3d50ee1

Please sign in to comment.