-
Notifications
You must be signed in to change notification settings - Fork 0
v0.2.3 #11
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
v0.2.3 #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,6 @@ vignettes/precompile\.R | |
| ^Meta$ | ||
| ^CRAN-SUBMISSION$ | ||
| ^README\.Rmd$ | ||
| ^.mailmap$ | ||
| ^.mailmap$ | ||
| ^\.positai$ | ||
| ^\.claude$ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,4 @@ inst/tutorials/tutorial5/equivalence_data/* | |
| toadd/* | ||
| .data.csv | ||
| cache/* | ||
| .positai | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| # netrics 0.2.3 | ||
|
|
||
| ## Tutorials | ||
|
|
||
| - Fixed object reference in position tutorial | ||
|
|
||
| # netrics 0.2.2 | ||
|
|
||
| ## Package | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -48,6 +48,7 @@ learnr::random_phrases_add(language = "en", | |||||||||
| friends <- to_uniplex(ison_algebra, "friends") | ||||||||||
| social <- to_uniplex(ison_algebra, "social") | ||||||||||
| tasks <- to_uniplex(ison_algebra, "tasks") | ||||||||||
| alge <- to_named(ison_algebra) | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
@@ -479,7 +480,7 @@ What we are saying here is that we want to partition the nodes | |||||||||
| into two clusters, no matter how dissimilar they are. | ||||||||||
|
|
||||||||||
| ```{r k-discrete, exercise = TRUE, exercise.setup = "varyclust"} | ||||||||||
| plot(node_in_structural(alge, k = 2)) | ||||||||||
| plot(node_in_structural(to_named(ison_algebra), k = 2)) | ||||||||||
|
||||||||||
| plot(node_in_structural(to_named(ison_algebra), k = 2)) | |
| plot(node_in_structural(alge, k = 2)) |
Copilot
AI
Apr 25, 2026
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.
Same issue as k-discrete: since exercise.setup = "varyclust" already created alge <- to_named(ison_algebra), calling to_named(ison_algebra) again here can yield different fake names between plots/runs. Reuse alge so the elbow vs silhouette outputs are directly comparable.
| plot(node_in_structural(to_named(ison_algebra), k = "elbow")) | |
| plot(node_in_structural(to_named(ison_algebra), k = "silhouette")) | |
| plot(node_in_structural(alge, k = "elbow")) | |
| plot(node_in_structural(alge, k = "silhouette")) |
Copilot
AI
Apr 25, 2026
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.
exercise.setup = "varyclust" already defines alge <- to_named(ison_algebra) for consistent fake names. Calling to_named(ison_algebra) again here can change node labels between the dendrograms and this plot (and between runs). Use alge instead so the tutorial’s examples stay consistent.
| plot(node_in_structural(to_named(ison_algebra), k = "strict")) | |
| plot(node_in_structural(alge, k = "strict")) |
Copilot
AI
Apr 25, 2026
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.
alge is already available from exercise.setup = "varyclust". Re-creating it with to_named(ison_algebra) here can change the node labels relative to the dendrograms shown earlier, making the tutorial harder to follow. Prefer using the existing alge object.
| alge <- to_named(ison_algebra) |
Large diffs are not rendered by default.
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.
In
.Rbuildignoreentries are regexes;^.mailmap$treats.as “any character”, so it can match unintended filenames (e.g.,xmailmap). Escape the dot to only ignore the.mailmapfile (i.e.,^\.mailmap$).