andrie / deepviz

An R Package to Visualize Neural Network Architectures
https://andrie.github.io/deepviz/index.html
Other
37 stars 8 forks source link

plot_deepviz() not working - throws layout_fun error #16

Open neural-oracle opened 4 years ago

neural-oracle commented 4 years ago

Hi. using c(4, 1) %>%

plot_model() function worked fine ... but not plot_deepviz()

shixiangbupt commented 4 years ago

Show in New WindowClear OutputExpand/Collapse Output

Show in New WindowClear OutputExpand/Collapse Output Error in layout_fun(graph, circular = circular, ...) : 参数没有用(node.position = layout_keras(., n)) 15. layout_to_table.character(layout, graph, circular = circular, ...) 14. layout_to_table(layout, graph, circular = circular, ...) 13. create_layout.tbl_graph(graph, layout, ...) 12. create_layout(graph, layout, ...) 11. ggplot(data = create_layout(graph, layout, ...), environment = envir) 10. ggraph(., layout = "manual", node.position = layout_keras(., n)) 9. function_list[k] 8. withVisible(function_list[k]) 7. freduce(value, _function_list) 6. _fseq(_lhs) 5. eval(quote(_fseq(_lhs)), env, env) 4. eval(quote(_fseq(_lhs)), env, env) 3. withVisible(eval(quote(_fseq(_lhs)), env, env)) 2. tidygraph::tbl_graph(nodes = nodes, edges = edges) %>% ggraph(layout = "manual", node.position = layout_keras(., n)) 1. plot_deepviz(n1)

DTegano commented 4 years ago

I'm having the same issue as @neural-oracle.

Is there a work around yet?

berthetclement commented 4 years ago

Hi, I like the concept but I have the same mistake then @neural-oracle .

_c(4, 1) %>%

My conf at this moment :

R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale: [1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 [4] LC_NUMERIC=C LC_TIME=French_France.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] purrr_0.3.4 ggraph_2.0.3 ggplot2_3.3.2 magrittr_1.5 deepviz_0.0.1.9000 reticulate_1.16
[7] kerasR_0.6.1 spam_0.1.0 dplyr_1.0.1 tensorflow_2.2.0 keras_2.3.0.0

loaded via a namespace (and not attached): [1] ggdendro_0.1.21 viridis_0.5.1 tidyr_1.1.1 viridisLite_0.3.0 tidygraph_1.2.0 jsonlite_1.7.0
[7] splines_4.0.2 foreach_1.5.0 assertthat_0.2.1 yaml_2.2.1 ggrepel_0.8.2 gdtools_0.2.2
[13] pillar_1.4.6 backports_1.1.7 lattice_0.20-41 glue_1.4.1 pROC_1.16.2 uuid_0.1-4
[19] digest_0.6.25 RColorBrewer_1.1-2 polyclip_1.10-0 colorspace_1.4-1 htmltools_0.5.0 Matrix_1.2-18
[25] plyr_1.8.6 pkgconfig_2.0.3 broom_0.7.0 DiagrammeR_1.0.6.1 scales_1.1.1 tweenr_1.0.1
[31] whisker_0.4 officer_0.3.12 ggforce_0.3.2 tibble_3.0.3 mgcv_1.8-31 generics_0.0.2
[37] farver_2.0.3 ellipsis_0.3.1 withr_2.2.0 cli_2.0.2 survival_3.1-12 crayon_1.3.4
[43] evaluate_0.14 fansi_0.4.1 nlme_3.1-148 MASS_7.3-51.6 xml2_1.3.2 rsconnect_0.8.16
[49] tools_4.0.2 data.table_1.13.0 lifecycle_0.2.0 stringr_1.4.0 flextable_0.5.10 munsell_0.5.0
[55] glmnet_4.0-2 zip_2.1.0 packrat_0.5.0 compiler_4.0.2 systemfonts_0.2.3 rlang_0.4.7
[61] grid_4.0.2 iterators_1.0.12 rstudioapi_0.11 rappdirs_0.3.1 htmlwidgets_1.5.1 visNetwork_2.0.9
[67] igraph_1.2.5 labeling_0.3 base64enc_0.1-3 rmarkdown_2.3 gtable_0.3.0 codetools_0.2-16
[73] graphlayouts_0.7.0 R6_2.4.1 gridExtra_2.3 tfruns_1.4 knitr_1.29 utf8_1.1.4
[79] zeallot_0.1.0 shape_1.4.4 stringi_1.4.6 Rcpp_1.0.5 vctrs_0.3.2 rpart_4.1-15

Thanks for help ..