Skip to content

Commit 3a35d33

Browse files
committed
Small fix to the Structure plot.
1 parent 8406f5f commit 3a35d33

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Encoding: UTF-8
22
Type: Package
33
Package: fastTopics
4-
Version: 0.7-24
5-
Date: 2025-02-20
4+
Version: 0.7-25
5+
Date: 2025-06-03
66
Title: Fast Algorithms for Fitting Topic Models and Non-Negative
77
Matrix Factorizations to Count Data
88
Authors@R: c(person("Peter","Carbonetto",role=c("aut","cre"),

R/fit_poisson_nmf.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ fit_poisson_nmf <- function (X, k, fit0, numiter = 100,
455455
cat(sprintf("Running at most %d %s updates, %s extrapolation ",
456456
numiter,method.text,
457457
ifelse(control$extrapolate,"with","without")))
458-
cat("(fastTopics 0.7-24).\n")
458+
cat("(fastTopics 0.7-25).\n")
459459
}
460460

461461
# INITIALIZE ESTIMATES

R/structure_plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ compile_grouped_structure_plot_data <- function (L, topics, grouping,
403403
out$sample <- out$sample + m
404404
n <- length(i)
405405
dat <- rbind(dat,out)
406-
ticks[j] <- m + n/2
406+
ticks[j] <- m + (n + 1)/2
407407
m <- m + n + gap
408408
}
409409
return(list(dat = dat,ticks = ticks))

0 commit comments

Comments
 (0)