thekingofkings / chicago-crime

Crime correlation anaysis
MIT License
11 stars 3 forks source link

pvalue-evaluation has NaN number for taxi flow #21

Closed thekingofkings closed 7 years ago

thekingofkings commented 7 years ago

Setting

Run the following code

python NBRegression.py pvalue

This function will spawn several python subprocess as workers, in which the R script R/pvalue-evaluation.R is called to actually run those permutation tests.

Error

The pvalue-evaluation.R is designed for LEHD flow, when feeding taxi flow instead, there is the NaN error.

Potential Reason

The normalization encounters divide-by-0 error, due to the sparsity of the taxi flow.

thekingofkings commented 7 years ago

Fixed!