Github user wangmiao1981 commented on the issue:
https://github.com/apache/spark/pull/16464
I print out the values of each step of `seqOp`,
`graph.vertices.aggregate(0.0)(seqOp, _ + _)` just returns the `seqOp` of the
last vertex.
VertexID sequence for original model:
-8 -6 -3 10 -5 4 11 -1 0 1 -2 6 -7 7 8 -10 -9 9 -4 3 -11 5 2
For this sequence, it returns the value of Vertex2.
VertexID sequence for the loaded model:
3 5 2 -11 -5 4 11 -1 0 1 -2 6 -7 -8 7 -10 8 9 -9 -4 10 -6 -3
For this sequence, it returns the value of Vertex -3.
Actually, the value of Vertex2 is the same in both sequences (same of
Vertex -3 too).
It seems that `graph.vertices.aggregate(0.0)(seqOp, _ + _)` doesn't
returns the aggregated value as it is supposed to return (i.e.,
`sum(SeqOp(Vertex_i))` ).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]