R 在 STM 模型收敛时崩溃

R crashes when STM model converge

当 STM 模型收敛时,R 相对频繁地崩溃。在 30 小时以上的估计会话后,请参见下图的一个示例。这发生在两台不同的计算机上,具有不同的数据大小。我无法确定导致这些崩溃的任何特定模式——因为崩溃似乎不是确定性的。

模型估计设置为

# full
Year <- year(df$date) # year data from the environment

stmFit.full <- stm(out$documents, out$vocab, K = 0, prevalence =~ s(Year) , 
                  max.em.its = 150, init.type = "Spectral", seed = 300, verbose = T)  

有什么解决办法吗?

附加信息: 一)

> #systeminfo
> > library(stm) stm v1.2.2 (2017-03-28) successfully loaded. See ?stm for help.
> > sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build
> 9200)
> 
> Matrix products: default
> 
> locale: [1] LC_COLLATE=Swedish_Sweden.1252 
> LC_CTYPE=Swedish_Sweden.1252    LC_MONETARY=Swedish_Sweden.1252
> LC_NUMERIC=C                    LC_TIME=Swedish_Sweden.1252    
> 
> attached base packages: [1] stats     graphics  grDevices utils    
> datasets  methods   base     
> 
> other attached packages: [1] stm_1.2.2
> 
> loaded via a namespace (and not attached): [1] compiler_3.4.1   
> Matrix_1.2-10     tools_3.4.1       Rcpp_0.12.12      grid_3.4.1      
> data.table_1.10.4 lattice_0.20-35  
> >

b) 我还在 github 的开发网站上提交了一份报告:https://github.com/bstewart/stm/issues/89

c) 崩溃图片:

我们已经解决了这个问题。请参阅 Github 处:https://github.com/bstewart/stm/issues/89