pysal / mgwr

Multiscale Geographically Weighted Regression (MGWR)
https://mgwr.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
368 stars 126 forks source link

model.predict => AttributeError: 'list' object has no attribute 'shape' #85

Closed icefoxhz closed 4 years ago

icefoxhz commented 4 years ago

pred_results = model.predict(pred_coords, pred_X, scale, residuals)

pred_coords is a list, must modify the code as follows:

image

ljwolf commented 4 years ago

Please use numpy arrays for input (X, y, and coordinates). Lists are not supported.

icefoxhz commented 4 years ago

ok , thanks