-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
Solves differences between C++ and R estimation engines #84
Conversation
…ead of ggplot2::aes_string
Merge branch 'develop' of github.com:snlab-ch/goldfish into develop # Conflicts: # R/functions_diagnostics.R
- Style C++ code to 80 columns - Debug wrong update in compositional change second mode
- Solves bug when reduce updates with duplicated entries
For more, please see Hollway (2020) Network Embeddedness and | ||
the Rate of Water Cooperation and Conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hollway, James. 2020. “Network Embeddedness and the Rate of Water Cooperation and Conflict.” Pp. 87–113 in Networks in Water Governance, edited by M. Fischer and K. Ingold. Cham: Springer International Publishing.
library(goldfish) | ||
data("RFID_Validity_Study") | ||
#?RFID_Validity_Study | ||
|
||
|
||
## ----------------------------------------------------------------------------------------------------------- | ||
## ---------------------------------------------------------------------------------------------------------------------- | ||
head(participants) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether we should change all these vignettes to tutorials. I think tutorials better fits how we use tutorials in courses, for example, and helps trim the size/testing burden of the package too. See manynet/migraph for how we have done it there.
This vignette summarizes effects that are implemented in `goldfish` and | ||
are thus available to be used with actor-oriented DyNAM models and tie-oriented Relational Event Models. | ||
are thus available to be used with actor-oriented DyNAM models and | ||
tie-oriented Relational Event Models. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything actually run in this vignette, or is it 'just' an information page.
add_node_attribute("floor", actors$floor) | ||
|
||
autographr(callNetworkHlf, labels = FALSE, layout = "fr") + | ||
geom_node_point(aes(color = as.factor(floor)), size = 2, show.legend = FALSE) | ||
|
||
# The network at the end | ||
callNetworkEnd <- as.matrix(callNetwork, time = max(calls$time) + 1) |> | ||
callNetworkEnd <- as.matrix(callNetwork, time = max(calls$time) + 1) |> | ||
add_node_attribute("floor", actors$floor) | ||
|
||
autographr(callNetworkEnd, labels = FALSE, layout = "fr") + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using vignettes means the plots will be changed everytime they are run, inflating the repository etc for no good reason. If they are illustrative, can they be moved to the README? If they are for learning/discovery, can they be in tutorials?
test_that( | ||
"out/in/deg weighted right censored preprocessing", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent job adding all these very important tests, @auzaheta , thank you!
#' @importFrom changepoint cpt.mean cpt.var | ||
#' @importFrom ggplot2 ggplot aes geom_line geom_point theme_minimal xlab ylab | ||
#' geom_vline scale_x_continuous theme element_text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These still seem to be required below, e.g. lines 208 and 212
if ("cache" %in% .argsNames) cache <- stats | ||
else cache <- NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are keen to use {rlang}
as a dependency, there is also rlang::%||%, which might be useful here.
@@ -52,7 +51,7 @@ defineGroups_interaction <- function(records, actors, seed.randomization, | |||
stopifnot( | |||
inherits(records, "data.frame"), | |||
inherits(actors, "data.frame"), | |||
is(seed.randomization, "numeric"), | |||
methods::is(seed.randomization, "numeric"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a methods dependency needs to be declared?
Description
startTime
andendTime
bug onDyNAM
andREM
modelspreprocessing.
aes_string()
deprecation.C++
engine on DyNAM-rate.Fixes #71
Closes #39
Checklist: