Trustability of results under warning messages

24 views
Skip to first unread message

Daniele Notarmuzi

unread,
Nov 5, 2018, 3:10:11 PM11/5/18
to powerlaw-general
Hi,

I am using the package to fit some data "from real world" (i.e. not produced by a simulation of some process).

I often receive error messages such as 

- RuntimeWarning: divide by zero encountered in true_divide (Theoretical_CDF * (1 - Theoretical_CDF)
- RuntimeWarning: invalid value encountered in true_divide (Theoretical_CDF * (1 - Theoretical_CDF)

and other similar messages. However they are not errors and the script gives me results. The question is: can I trust those results? 

Much less important: I am comparing my real data with synthetic data to compute a p value informing me about the goodness of fit. This requires to call a lot of time the command Fit(data, **options) and every call print on the terminal "Calculating best minimal value for powerlaw fit". I was wondering if there is some option to prevent this behaviour (I tried sys.stdout = open(os.devnull, 'w') but apparently does not work. ) Any idea?

Thank you in advance.

Best,
DN.

Jeff Alstott

unread,
Nov 5, 2018, 5:02:46 PM11/5/18
to powerlaw...@googlegroups.com
"Can I trust those results?"

"I was wondering if there is some option to prevent this behaviour (I tried sys.stdout = open(os.devnull, 'w') but apparently does not work. ) Any idea?"
Fit(data, verbose=False)

--
You received this message because you are subscribed to the Google Groups "powerlaw-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to powerlaw-gener...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages