CausalDiscoveryToolbox icon indicating copy to clipboard operation
CausalDiscoveryToolbox copied to clipboard

The return value of predict_proba function in causality.pairwise

Open NawTun opened this issue 4 years ago • 5 comments

Dear Diviyan: I found that in doc image Does the return value of this function is between -1 and 1? but when I applied this function I often got some much larger values such as 13,14, do this larger values mean that the causal relation is much stronger? Thank you for your reply.

NawTun avatar Apr 16 '21 03:04 NawTun

Hello @NawTun,

It depends on the algorithm, but currently .predict_proba outputs the raw output of the algorithm. Which one are you using ?

Best, Diviyan

diviyank avatar Apr 19 '21 07:04 diviyank

Hi @Diviyan-Kalainathan,

Thanks for your reply, I used ANM algorithm,

Although this function returns a raw output, I can still compare the absolute value one output to another output in order to understand relative probability. For example, predict_proba(a,b) returns 4 when predict_proba(c,d) returns 2, so a->b is relatively more possible than c->d ,

am I right?

NawTun avatar Apr 19 '21 08:04 NawTun

Yes that is correct. The algorithm is more confident in a -> b than c ->d. Did you check with the original (matlab) implementation of ANM ? Those values does seem high for ANM...

diviyank avatar Apr 19 '21 08:04 diviyank

OK, Thanks for your affirmance, Diviyan, Maybe the original implementation can help to understand, I will check it later. In addition, CDT is really a great tool, :blush: Thanks again.

NawTun avatar Apr 19 '21 08:04 NawTun

If the value is between -1 and 1, doesn't that mean it doesn't know the direction of the edge.

945716994 avatar Sep 16 '21 07:09 945716994