当STM模型收敛时,R崩溃

时间:2017-08-20 12:56:20

标签: r rstudio topic-modeling

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

模型估算设置为

# 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)中 崩溃的形象:

enter image description here

1 个答案:

答案 0 :(得分:0)

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