Running ‘testthat.R’ [114s/128s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(text2vec)
  > library(mlapi)
  > data("movie_review")
  > test_check("text2vec")
  INFO  [14:50:04.848] early stopping at 90 iteration 
  INFO  [14:50:06.045] early stopping at 40 iteration 
  INFO  [14:51:48.458] epoch 1, loss 0.1636 
  INFO  [14:51:48.588] epoch 2, loss 0.0877 
  INFO  [14:51:48.724] epoch 3, loss 0.0681 
  INFO  [14:51:48.852] epoch 4, loss 0.0574 
  INFO  [14:51:48.982] epoch 5, loss 0.0499 
  INFO  [14:51:55.215] soft_als: iter 001, frobenious norm change 350.850 loss NA  
  INFO  [14:51:55.223] soft_als: iter 002, frobenious norm change 0.290 loss NA  
  INFO  [14:51:55.230] soft_als: iter 003, frobenious norm change 0.042 loss NA  
  INFO  [14:51:55.238] soft_als: iter 004, frobenious norm change 0.013 loss NA  
  INFO  [14:51:55.245] soft_als: iter 005, frobenious norm change 0.006 loss NA  
  INFO  [14:51:55.254] soft_als: iter 006, frobenious norm change 0.003 loss NA  
  INFO  [14:51:55.262] soft_als: iter 007, frobenious norm change 0.002 loss NA  
  INFO  [14:51:55.270] soft_als: iter 008, frobenious norm change 0.001 loss NA  
  INFO  [14:51:55.283] soft_als: iter 009, frobenious norm change 0.001 loss NA  
  INFO  [14:51:55.285] soft_impute: converged with tol 0.001000 after 9 iter 
  INFO  [14:51:55.391] soft_als: iter 001, frobenious norm change 144.826 loss NA  
  INFO  [14:51:55.464] soft_als: iter 002, frobenious norm change 0.002 loss NA  
  INFO  [14:51:55.541] soft_als: iter 003, frobenious norm change 0.000 loss NA  
  INFO  [14:51:55.542] soft_impute: converged with tol 0.001000 after 3 iter 
  INFO  [14:51:55.662] soft_als: iter 001, frobenious norm change 144.910 loss NA  
  INFO  [14:51:55.892] soft_als: iter 002, frobenious norm change 0.002 loss NA  
  INFO  [14:51:55.961] soft_als: iter 003, frobenious norm change 0.000 loss NA  
  INFO  [14:51:55.968] soft_impute: converged with tol 0.001000 after 3 iter 
  INFO  [14:51:56.125] soft_als: iter 001, frobenious norm change 504.432 loss NA  
  INFO  [14:51:56.130] soft_als: iter 002, frobenious norm change 0.345 loss NA  
  INFO  [14:51:56.135] soft_als: iter 003, frobenious norm change 0.056 loss NA  
  INFO  [14:51:56.140] soft_als: iter 004, frobenious norm change 0.020 loss NA  
  INFO  [14:51:56.145] soft_als: iter 005, frobenious norm change 0.009 loss NA  
  INFO  [14:51:56.151] soft_als: iter 006, frobenious norm change 0.005 loss NA  
  INFO  [14:51:56.156] soft_als: iter 007, frobenious norm change 0.003 loss NA  
  INFO  [14:51:56.161] soft_als: iter 008, frobenious norm change 0.002 loss NA  
  INFO  [14:51:56.166] soft_als: iter 009, frobenious norm change 0.001 loss NA  
  INFO  [14:51:56.171] soft_als: iter 010, frobenious norm change 0.001 loss NA  
  INFO  [14:51:56.172] soft_impute: converged with tol 0.001000 after 10 iter 
  [ FAIL 17 | WARN 30 | SKIP 0 | PASS 148 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-distances.R:29:3): cosine ─────────────────────────────────────
  cos_dist[1, 2] not equal to 0.406.
  1/1 mismatches
  [1] 0.417 - 0.406 == 0.0114
  ── Failure (test-distances.R:45:3): jaccard ────────────────────────────────────
  jac_dist[1, 2] not equal to 0.816.
  1/1 mismatches
  [1] 0.819 - 0.816 == 0.00305
  ── Failure (test-hash-corpus.R:19:3): Unigram Hash Corpus construction ─────────
  length(m@x) not equal to 140615L.
  1/1 mismatches
  [1] 140674 - 140615 == 59
  ── Failure (test-hash-corpus.R:37:3): trigram hash-corpus construction ─────────
  length(m@x) not equal to 591549L.
  1/1 mismatches
  [1] 592063 - 591549 == 514
  ── Failure (test-iterators.R:24:3): ifiles ─────────────────────────────────────
  nrow(v) not equal to 7448.
  1/1 mismatches
  [1] 7425 - 7448 == -23
  ── Failure (test-iterators.R:37:3): ifiles_parallel ────────────────────────────
  nrow(v) not equal to 7448.
  1/1 mismatches
  [1] 7425 - 7448 == -23
  ── Failure (test-iterators.R:59:3): itoken character ───────────────────────────
  nrow(v) not equal to 4562.
  1/1 mismatches
  [1] 4553 - 4562 == -9
  ── Failure (test-iterators.R:65:3): itoken character parallel ──────────────────
  nrow(v) not equal to 4562.
  1/1 mismatches
  [1] 4553 - 4562 == -9
  ── Failure (test-iterators.R:72:3): itoken list parallel ───────────────────────
  nrow(v) not equal to 4562.
  1/1 mismatches
  [1] 4553 - 4562 == -9
  ── Failure (test-vocab-corpus.R:16:3): Vocabulary pruning ──────────────────────
  length(vocab$term) not equal to 19297.
  1/1 mismatches
  [1] 19123 - 19297 == -174
  ── Failure (test-vocab-corpus.R:19:3): Vocabulary pruning ──────────────────────
  max(vocab$term_count) not equal to 13224.
  1/1 mismatches
  [1] 13252 - 13224 == 28
  ── Failure (test-vocab-corpus.R:86:3): Unigran Vocabulary Corpus construction ──
  length(m@x) not equal to 141714L.
  1/1 mismatches
  [1] 141774 - 141714 == 60
  ── Failure (test-vocab-corpus.R:104:3): bi-gram Vocabulary Corpus construction ──
  sum(grepl("_", vocab$term, fixed = TRUE)) not equal to 121333L.
  1/1 mismatches
  [1] 121246 - 121333 == -87
  ── Failure (test-vocab-corpus.R:105:3): bi-gram Vocabulary Corpus construction ──
  length(vocab$term) not equal to 121333L.
  1/1 mismatches
  [1] 121246 - 121333 == -87
  ── Failure (test-vocab-corpus.R:113:3): bi-gram Vocabulary Corpus construction ──
  length(m@x) not equal to 220104L.
  1/1 mismatches
  [1] 220317 - 220104 == 213
  ── Failure (test-vocab-corpus.R:121:3): Unigram + Bigram Vocabulary Corpus construction ──
  length(vocab$term) not equal to 140630L.
  1/1 mismatches
  [1] 140369 - 140630 == -261
  ── Failure (test-vocab-corpus.R:128:3): Unigram + Bigram Vocabulary Corpus construction ──
  length(m@x) not equal to 361818L.
  1/1 mismatches
  [1] 362091 - 361818 == 273
  
  [ FAIL 17 | WARN 30 | SKIP 0 | PASS 148 ]
  Error: Test failures
  Execution halted