Open rudyarthur opened 9 months ago
Thanks for the report!
The input x and y arrays must be of shape (n,1). So, I think the flattening should happen in the user code.
We can definitely improve documentation and force the validation step to catch this, however!
The above with pysal version 4.7.0 and esda version 2.5.0 doesn't produce what it ought to. The first fit returns a 4x4 array where the docs say to expect a 2x2. The second crashes with "dimension mismatch" error.
Looking at the code in
lee.py
I think the x and y inputs need to be flattened. The default connectivity is the unit matrix which is probably never what is required in practice. I'd suggest requiring the user to input the spatial weight matrix as in the moran code.Cheers, Rudy