You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, for several subsets of my data, my code runs fine, but for one subset (looking at newspapers from the UK), I keep getting this error:
Warning: There were 10 warnings in mutate().
The first warning was:
ℹ In argument: topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461)).
Caused by warning in dfm2stm():
! Dropped 21,185 empty document(s)
ℹ Run dplyr::last_dplyr_warnings() to see the 9 remaining warnings.
dplyr::last_dplyr_warnings()
[[1]]
<warning/rlang_warning>
Warning in mutate():
ℹ In argument: topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461)).
Caused by warning in dfm2stm():
! Dropped 21,185 empty document(s)
Backtrace:
▆
├─data_frame(K = c(20, 30, 40, 50, 60)) %>% ...
├─dplyr::mutate(...)
└─dplyr:::mutate.data.frame(...)
[[2]]
<warning/rlang_warning>
Warning in mutate():
ℹ In argument: topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461)).
Caused by warning:
! UNRELIABLE VALUE: Future (‘’) unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
Backtrace:
▆
├─data_frame(K = c(20, 30, 40, 50, 60)) %>% ...
├─dplyr::mutate(...)
└─dplyr:::mutate.data.frame(...)
[[3]]
<warning/rlang_warning>
Warning in mutate():
ℹ In argument: topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461)).
Caused by warning in dfm2stm():
! Dropped 21,185 empty document(s)
Backtrace:
▆
├─data_frame(K = c(20, 30, 40, 50, 60)) %>% ...
├─dplyr::mutate(...)
└─dplyr:::mutate.data.frame(...)
[[4]]
<warning/rlang_warning>
Warning in mutate():
ℹ In argument: topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461)).
Caused by warning:
! UNRELIABLE VALUE: Future (‘’) unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
Backtrace:
▆
├─data_frame(K = c(20, 30, 40, 50, 60)) %>% ...
├─dplyr::mutate(...)
└─dplyr:::mutate.data.frame(...)
[[5]]
<warning/rlang_warning>
Warning in mutate():
ℹ In argument: topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461)).
Caused by warning in dfm2stm():
! Dropped 21,185 empty document(s)
Backtrace:
▆
├─data_frame(K = c(20, 30, 40, 50, 60)) %>% ...
├─dplyr::mutate(...)
└─dplyr:::mutate.data.frame(...)
... with 5 more warnings.
The text was updated successfully, but these errors were encountered:
Hello, for several subsets of my data, my code runs fine, but for one subset (looking at newspapers from the UK), I keep getting this error:
Warning: There were 10 warnings in
mutate()
.The first warning was:
ℹ In argument:
topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461))
.Caused by warning in
dfm2stm()
:! Dropped 21,185 empty document(s)
ℹ Run dplyr::last_dplyr_warnings() to see the 9 remaining warnings.
Here is my code:
conflicts_prefer(stopwords::stopwords)
toks <-
tokens(text_corp2, remove_numbers = TRUE, remove_punct = TRUE, remove_symbols = TRUE) %>%
tokens_wordstem %>%
tokens_remove(c(stopwords("en", source = "stopwords-iso")))
dfm_uk <- dfm(toks) %>%
dfm_trim(min_docfreq = 0.01, docfreq_type = "prop")
Error occurs here:
many_models <- data_frame(K = c(20, 30, 40, 50, 60)) %>%
mutate(topic_model = future_map(K, ~stm(dfm_uk, K = .,
verbose = FALSE, seed=2461)))
Backtrace:
▆
[[2]]
<warning/rlang_warning>
Warning in
mutate()
:ℹ In argument:
topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461))
.Caused by warning:
! UNRELIABLE VALUE: Future (‘’) unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
Backtrace:
▆
[[3]]
<warning/rlang_warning>
Warning in
mutate()
:ℹ In argument:
topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461))
.Caused by warning in
dfm2stm()
:! Dropped 21,185 empty document(s)
Backtrace:
▆
[[4]]
<warning/rlang_warning>
Warning in
mutate()
:ℹ In argument:
topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461))
.Caused by warning:
! UNRELIABLE VALUE: Future (‘’) unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
Backtrace:
▆
[[5]]
<warning/rlang_warning>
Warning in
mutate()
:ℹ In argument:
topic_model = future_map(K, ~stm(dfm_uk, K = ., verbose = FALSE, seed = 2461))
.Caused by warning in
dfm2stm()
:! Dropped 21,185 empty document(s)
Backtrace:
▆
... with 5 more warnings.
The text was updated successfully, but these errors were encountered: