-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR aims to solve issue 41. (#43)
* This commit aims to solve issue 41. Now the default value for `q_taylor_vector` is 8 for non linear layers and 1 for the linear ones. Also, check weight constraints has been removed from exports and a new internal function called `check_weight_dimensions` has been created. Additional tests have also been added. * pin to [email protected] (see r-lib/vdiffr/issues/137) --------- Co-authored-by: Iñaki Úcar <[email protected]>
- Loading branch information
1 parent
6e813ea
commit 4f947e2
Showing
12 changed files
with
193 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
- uses: r-lib/actions/setup-pandoc@v2 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck, any::covr | ||
extra-packages: any::rcmdcheck, any::covr, [email protected] | ||
needs: check, coverage | ||
- name: Miniconda + Tensorflow + Keras installation | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::pkgdown, local::. | ||
extra-packages: any::pkgdown, local::., [email protected] | ||
needs: website | ||
|
||
- name: Build site | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' dimensions checker | ||
#' | ||
#' @param weights_matrices_list List of weight matrices of a given neural network. | ||
#' | ||
#' @return `TRUE` if the dimensiones are correct, `FALSE` if not. | ||
#' | ||
check_weights_dimensions <- function(weights_matrices_list) { | ||
for (matrix_index in 2:length(weights_matrices_list)) { | ||
nrows_current <- nrow(weights_matrices_list[[matrix_index]]) | ||
ncols_prev <- ncol(weights_matrices_list[[matrix_index - 1]]) | ||
|
||
if (nrows_current != ncols_prev + 1) | ||
return(FALSE) | ||
} | ||
return(TRUE) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters