Skip to content

Commit

Permalink
Solve rounding precision problems when testing in mac, bump patch ver…
Browse files Browse the repository at this point in the history
…sion to 0.1.1 and update NEWS.
  • Loading branch information
moralapablo committed Jan 30, 2024
1 parent fbef042 commit 1ab5dd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nn2poly
Title: Neural Network Weights Transformation into Polynomial Coefficients
Version: 0.1.0
Version: 0.1.1
Authors@R: c(
person(given = "Pablo", family = "Morala", role = c("aut", "cre"),
email = "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# nn2poly 0.1.1

- Solve test rounding precision problem due to new architechture of mac OS (#69).

# nn2poly 0.1.0

- Initial release of the package.
5 changes: 2 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Resubmission
## Patch release

1. Examples with unexported functions have been removed.
2. Examples using `\dontrun` are required as they use `keras` and `torch`, which require an interactive setup.
- Solve test rounding precision problem due to new architechture of mac OS.

## Test environments

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-nn2poly.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test_that("nn2poly with list input against precomputed example with
label <- result$labels[[4]]
coeff <- result$values[4,1]
expect_equal(label,c(1,1))
expect_equal(round(coeff,4),-4.4295)
expect_equal(round(coeff,3),-4.429)
})


Expand Down

0 comments on commit 1ab5dd3

Please sign in to comment.