You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Francesco Sclano <sc...@gmail.com> on 2018/08/06 12:44:38 UTC

Is it normal that a same algorithm for 4 profiles calculus implemented both in giraph and graphlab gives different output with same input?

Hi,
I implemented in giraph the calculus of 4 profiles (
https://people.csail.mit.edu/jshun/papers/ESBD16.pdf) already implemented
here https://github.com/eelenberg/4-profiles with graphlab.
I'm able to run both graphlab e giraph programs. I know well differences
between graphlab and giraph but I have a doubt: when I use small input
graphs both programs give exactly the same output. When I use bigger input
graphs (like http://snap.stanford.edu/data/p2p-Gnutella08.html) they
produce a slightly different output. It is normal? Maybe it depends by the
way to partitionate the input graph? Or simply there is a bug in my giraph
implementation?

-- 
Francesco Sclano

Re: Is it normal that a same algorithm for 4 profiles calculus implemented both in giraph and graphlab gives different output with same input?

Posted by Dionysios Logothetis <dl...@gmail.com>.
Awesome, thanks for the update. We'll be happy to review your code.

On Mon, Aug 27, 2018 at 7:30 AM Francesco Sclano <sc...@gmail.com>
wrote:

> Hi Dionysios,
> the problem was simply due to some trivial bugs of my giraph
> implementation. Now I'm able to produce the same output both from graphlab
> and my giraph implementation of 4-profiles calculus. For instance I used
> http://snap.stanford.edu/data/p2p-Gnutella08.html as input graph.
>
> Regarding the contribution: up now I used standalone and
> pseudo-distributed mode. Now I'm starting to use EC2 so I'll let you know
> ... thanks for interesting in my work!
>
> Il giorno gio 9 ago 2018 alle ore 01:03 Dionysios Logothetis <
> dlogothetis@gmail.com> ha scritto:
>
>> Hi Francesco,
>>
>> Here are few thoughts on reasons this may happen:
>>
>> - I haven't written any graphlab application myself, but the synchronous
>> vs. asynchronous model can generally be a reason for differences. It is
>> possible that such differences do not manifest on smaller graphs. What's
>> the size of the smaller input graphs where the result is equal?
>> - More generally, and taking into consideration the differences in the
>> model, how certain are you that the implementations are equivalent?
>> - For the bigger graphs, do you have a reference result that you can use,
>> to see what the output should be?
>>
>> Also, are you planning to contribute your Giraph implementation to Apache
>> Giraph? That'd be great.
>>
>>
>> Dionysios
>>
>>
>>
>> On Mon, Aug 6, 2018 at 5:44 AM, Francesco Sclano <
>> sclano.francesco@gmail.com> wrote:
>>
>>> Hi,
>>> I implemented in giraph the calculus of 4 profiles (
>>> https://people.csail.mit.edu/jshun/papers/ESBD16.pdf) already
>>> implemented here https://github.com/eelenberg/4-profiles with graphlab.
>>> I'm able to run both graphlab e giraph programs. I know well differences
>>> between graphlab and giraph but I have a doubt: when I use small input
>>> graphs both programs give exactly the same output. When I use bigger input
>>> graphs (like http://snap.stanford.edu/data/p2p-Gnutella08.html) they
>>> produce a slightly different output. It is normal? Maybe it depends by the
>>> way to partitionate the input graph? Or simply there is a bug in my giraph
>>> implementation?
>>>
>>> --
>>> Francesco Sclano
>>>
>>
>>
>
> --
> Francesco Sclano
>

Re: Is it normal that a same algorithm for 4 profiles calculus implemented both in giraph and graphlab gives different output with same input?

Posted by Francesco Sclano <sc...@gmail.com>.
Hi Dionysios,
the problem was simply due to some trivial bugs of my giraph
implementation. Now I'm able to produce the same output both from graphlab
and my giraph implementation of 4-profiles calculus. For instance I used
http://snap.stanford.edu/data/p2p-Gnutella08.html as input graph.

Regarding the contribution: up now I used standalone and pseudo-distributed
mode. Now I'm starting to use EC2 so I'll let you know ... thanks for
interesting in my work!

Il giorno gio 9 ago 2018 alle ore 01:03 Dionysios Logothetis <
dlogothetis@gmail.com> ha scritto:

> Hi Francesco,
>
> Here are few thoughts on reasons this may happen:
>
> - I haven't written any graphlab application myself, but the synchronous
> vs. asynchronous model can generally be a reason for differences. It is
> possible that such differences do not manifest on smaller graphs. What's
> the size of the smaller input graphs where the result is equal?
> - More generally, and taking into consideration the differences in the
> model, how certain are you that the implementations are equivalent?
> - For the bigger graphs, do you have a reference result that you can use,
> to see what the output should be?
>
> Also, are you planning to contribute your Giraph implementation to Apache
> Giraph? That'd be great.
>
>
> Dionysios
>
>
>
> On Mon, Aug 6, 2018 at 5:44 AM, Francesco Sclano <
> sclano.francesco@gmail.com> wrote:
>
>> Hi,
>> I implemented in giraph the calculus of 4 profiles (
>> https://people.csail.mit.edu/jshun/papers/ESBD16.pdf) already
>> implemented here https://github.com/eelenberg/4-profiles with graphlab.
>> I'm able to run both graphlab e giraph programs. I know well differences
>> between graphlab and giraph but I have a doubt: when I use small input
>> graphs both programs give exactly the same output. When I use bigger input
>> graphs (like http://snap.stanford.edu/data/p2p-Gnutella08.html) they
>> produce a slightly different output. It is normal? Maybe it depends by the
>> way to partitionate the input graph? Or simply there is a bug in my giraph
>> implementation?
>>
>> --
>> Francesco Sclano
>>
>
>

-- 
Francesco Sclano

Re: Is it normal that a same algorithm for 4 profiles calculus implemented both in giraph and graphlab gives different output with same input?

Posted by Dionysios Logothetis <dl...@gmail.com>.
Hi Francesco,

Here are few thoughts on reasons this may happen:

- I haven't written any graphlab application myself, but the synchronous
vs. asynchronous model can generally be a reason for differences. It is
possible that such differences do not manifest on smaller graphs. What's
the size of the smaller input graphs where the result is equal?
- More generally, and taking into consideration the differences in the
model, how certain are you that the implementations are equivalent?
- For the bigger graphs, do you have a reference result that you can use,
to see what the output should be?

Also, are you planning to contribute your Giraph implementation to Apache
Giraph? That'd be great.


Dionysios



On Mon, Aug 6, 2018 at 5:44 AM, Francesco Sclano <sclano.francesco@gmail.com
> wrote:

> Hi,
> I implemented in giraph the calculus of 4 profiles (
> https://people.csail.mit.edu/jshun/papers/ESBD16.pdf) already implemented
> here https://github.com/eelenberg/4-profiles with graphlab.
> I'm able to run both graphlab e giraph programs. I know well differences
> between graphlab and giraph but I have a doubt: when I use small input
> graphs both programs give exactly the same output. When I use bigger input
> graphs (like http://snap.stanford.edu/data/p2p-Gnutella08.html) they
> produce a slightly different output. It is normal? Maybe it depends by the
> way to partitionate the input graph? Or simply there is a bug in my giraph
> implementation?
>
> --
> Francesco Sclano
>