Skip to content
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

update data format for graph #32

Closed
wants to merge 18 commits into from
Closed

update data format for graph #32

wants to merge 18 commits into from

Conversation

deqingli
Copy link
Contributor

No description provided.

}
],
"edge": [
{"source": "x", "target": "1"},
Copy link
Member

@jacquesqiao jacquesqiao Dec 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把label也加上吧

{"source": "x", "target": "1", "label": "x"}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我竟然忘了,失误

@deqingli deqingli closed this Dec 27, 2017
jacquesqiao
jacquesqiao previously approved these changes Dec 27, 2017
Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! please @daming-lu review ~

daming-lu
daming-lu previously approved these changes Dec 27, 2017
}
],
"edge": [
{"source": "x", "target": "1", "label": "label1"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'X' 应该大写

"data_type": "FLOAT",
"name": "Y",
"shape": [
"1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否应该用至少二维维度?这样更generic?比如:

W1: 3 x 2
X: 2 x 1
B1: 3 x 1

Copy link
Member

@jacquesqiao jacquesqiao Dec 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shape是一个vector, 比如 [1,2,3]就代表 1 X 2 X 3的三维矩阵,vector<int>足够表达任意维度了

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不好意思,我误解了,确实shape多几个维度更有代表性

@jacquesqiao jacquesqiao mentioned this pull request Dec 27, 2017
3 tasks
@deqingli deqingli dismissed stale reviews from daming-lu and jacquesqiao via 3f5d5db December 27, 2017 11:50
}
],
"edge": [
{"source": "X", "target": "1", "label": "label1"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 我们可以把 source -> from, target -> to
  2. 这个例子漏掉了从node出来的边,比如,第一个node有4条边
    W1 -> node_0
    B1 -> node_0
    X -> node_0
    node_0 -> H1 (出边漏掉了!)
  3. 用名字 ”X" 不知道方不方便? 我想可以用 类型+下标,比如 input_0, node_1 。看看前端怎么render方便。个人感觉如果用名字 “X",”W2" 什么的,则需要用 map 来加速查找。既然我们已经有 array了,用下标比较方便。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 这个名称就不改了,之前的可视化,edge 都是 target, source。
  2. 理解是 "H1" 的作用就是连接 node 1 , node2.
  3. 这个name 是作为 keyid的,用来查找node,后端怎么取都行。

jacquesqiao
jacquesqiao previously approved these changes Jan 8, 2018
Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deqingli deqingli closed this Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants