CartoDB / crankshaft

CARTO Spatial Analysis extension for PostgreSQL
BSD 3-Clause "New" or "Revised" License
54 stars 20 forks source link

GWR: RuntimeWarning: divide by zero encountered in divide #188

Closed Algunenano closed 4 years ago

Algunenano commented 6 years ago

When running the python tests I'm getting this runtime warning:

nosetests2 crankshaft/test/
/usr/lib/python2.7/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)
................/usr/lib/python2.7/site-packages/crankshaft/regression/gwr/base/gwr.py:236: RuntimeWarning: divide by zero encountered in divide
  S = S * (1.0/z)
/usr/lib/python2.7/site-packages/crankshaft/regression/gwr/base/gwr.py:236: RuntimeWarning: invalid value encountered in multiply
  S = S * (1.0/z)
........
----------------------------------------------------------------------
Ran 24 tests in 0.881s

OK

cc/ @andy-esch

andy-esch commented 6 years ago

Thanks for flagging this @Algunenano. I'll look into it.

andy-esch commented 6 years ago

Waiting on some upstream changes: https://github.com/pysal/pysal/issues/1010

Algunenano commented 4 years ago

Stale