Vertex attribute terms fail at extracting it
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- R
- スター
- 16
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statnet/ergm.multi のほかの issue
-
Simplify combined_networks structure?再び着手できるかも @krivit が 238 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
statnet/ergm.multi#43 · コメント 1 件 · リアクション 1 件 · 担当者 2 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
statnet/ergm.multi#42 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
statnet/ergm.multi#39 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
statnet/ergm.multi#38 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
statnet/ergm.multi#16 · コメント 2 件 ·
statnet/ergm.multi の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
nf-core/nanostring#195 ·
メンテナーはふだん 1 日以内に返信
-
partial() returns wrong values (silently) when train is a matrix and pred.var has two variablesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
bgreenwell/pdp#140 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
-
upkeep
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
tidyverse/ellmer#1220 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
status:fix-merged
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ichirio/rtfreporter#928 ·
メンテナーはふだん 1 日以内に返信