Vertex attribute terms fail at extracting it
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Reproduce the example using Layer, summary(), ergm(), and nodecov("x"), then inspect the term initialization path described in the report and use rlang::last_trace() after ergm_Init_abort(). Done means vertex attribute x remains available during initialization so both summary() and ergm() accept the nodecov term for the business and marriage layers.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is a exegesis of this question on SO:
library(ergm.multi)
data(florentine, package = "ergm")
plot(flobusiness)
plot(flomarriage)
flo <- Layer(business = flobusiness, marriage = flomarriage)
set.vertex.attribute(flo, attrname = "x", value = 1:32)
flo
# Works
summary(
flo ~ L(~ edges, ~ business) + L(~ edges, ~ marriage)
)
# Works
ergm(
flo ~ L(~ edges, ~ business) + L(~ edges, ~ marriage)
)
# Doesn't work
summary(
flo ~ L(~ edges + nodecov("x"), ~ business) +
L(~ edges + nodecov("x"), ~ marriage)
)
# Error in `ergm_Init_abort()`:
# ! In term ‘nodecov’ in package ‘ergm’ (called from term ‘L’ in package ‘ergm.multi’): ‘x’ is/are not valid nodal attribute(s).
# Run `rlang::last_trace()` to see where the error occurred.
Brief debugging suggests that the term initialization function receives the network object stripped of all the attributes, hence x above is not found.
- Ngôn ngữ chính
- R
- Star
- 16
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của statnet/ergm.multi
-
Simplify combined_networks structure?Có thể làm lại được @krivit đã nhận 238 ngày trước và không có pull request nào đang mở. Đang mở
statnet/ergm.multi#43 · 1 bình luận · 1 reaction · 2 người được giao ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
statnet/ergm.multi#42 · 3 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
statnet/ergm.multi#39 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
statnet/ergm.multi#38 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
statnet/ergm.multi#16 · 2 bình luận ·
Tất cả issue của statnet/ergm.multi
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nf-core/nanostring#195 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
partial() returns wrong values (silently) when train is a matrix and pred.var has two variablesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
bgreenwell/pdp#140 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
-
Add clear guidance on testingĐang mởupkeep
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
tidyverse/ellmer#1220 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
status:fix-merged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ichirio/rtfreporter#928 ·
Maintainer thường phản hồi trong vòng 1 ngày