8000 final fix for v0.2.2 by Shusei-E · Pull Request #130 · keyATM/keyATM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

final fix for v0.2.2 #130

New issue

8000 Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# keyATM 0.2.2
### Major changes
* Updated for dplyr 1.0.0
* Update for dplyr 1.0.0
* Update tests

# keyATM 0.2.1
Expand Down Expand Up @@ -31,7 +31,7 @@
* Organize functions into a package
* Add keyATM Label
* Replace `hashmap` with `fastmap`
* Thank you [Santiago Olivella](http://santiagoolivella.info/) for finding several bugs!
* Thank you [Santiago Olivella](https://github.com/solivella) for finding several bugs!

# keyATM 0.0.7
### Major changes
Expand Down
42 changes: 21 additions & 21 deletions docs/articles/pkgdown_files/Weighted_LDA.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/news/news-0.1.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/news/news-0.2.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/LDA_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ void LDAbase::read_data_common()
regular_k = model["no_keyword_topics"];
model_fit = model["model_fit"];

keyword_k = 0;
num_topics = regular_k;

// document-related constants
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-weightedLDA.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ test_that("weightedLDA base", {
expect_error(plot_pi(base))

skip_on_os("linux") ; skip_on_cran()
expect_equal(base$model_fit$Perplexity[3], 1978.213, tolerance = 0.0001)
expect_equal(top_words(base)[3, 1], "library")
expect_equal(base$model_fit$Perplexity[3], 1981.469, tolerance = 0.0001)
expect_equal(top_words(base)[3, 1], "end")
expect_equal(base$pi, NULL)
})

Expand Down Expand Up @@ -58,6 +58,6 @@ test_that("weightedLDA dynamic", {
expect_error(plot_pi(dyn))

skip_on_os("linux") ; skip_on_cran()
expect_equal(dyn$model_fit$Perplexity[2], 2098.058, tolerance = 0.0001)
expect_equal(dyn$model_fit$Perplexity[2], 2087.217, tolerance = 0.0001)
expect_equal(top_words(dyn)[3, 1], "commission")
})
0