-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'tuple' object has no attribute 'shape' #84
Comments
ran the example code at https://mgwr.readthedocs.io/en/latest/generated/mgwr.gwr.GWR.html#mgwr.gwr.GWR also returned: AttributeError: 'tuple' object has no attribute 'shape' Python3.8. Any comments or suggestions? |
Hello @kkyyhh96 and @shughestr, I locate the problem. This happened because a recent update on A temporary fix would be to pin Cheers, |
You are right, rolling back version does solve the problem! Thanks.
…On Mon, Aug 24, 2020 at 1:47 PM Ziqi Li ***@***.***> wrote:
Hello @kkyyhh96 <https://github.com/kkyyhh96> and @shughestr
<https://github.com/shughestr>,
I locate the problem. This happened because a recent update on spreg
hasn't been reflected in the mgwr. There is a current open PR #83
<#83> from @weikang9009
<https://github.com/weikang9009> should fix this problem, but it hasn't
been merged yet.
A temporary fix would be to pin spreg to an earlier version e.g. v.1.1.1. pip
install spreg==1.1.1.
Cheers,
Ziqi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#84 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMUI22SNW76QHL3KFAOL7B3SCLGVHANCNFSM4QJZM7JQ>
.
|
Solved in #83 |
Hi Ziqi,
We are still experiencing some issues with the GWR approach/library. We
wonder if you'll have time to have a quick Zoom chat with us. We have
applied SVM, Ridge Regression, XGBoost on the dataset. As we are new in
this field, we can really use your help and guidance.
Just FYI, I am working on a pro bono basis with some graduate students in
Canadian universities on a Real Estate price trend forecast project. I
currently work for a Canadian government agency.
Let me know. Thanks.
Regards,
Dave Dong
…On Mon, Aug 24, 2020 at 10:04 PM tip red ***@***.***> wrote:
You are right, rolling back version does solve the problem! Thanks.
On Mon, Aug 24, 2020 at 1:47 PM Ziqi Li ***@***.***> wrote:
>
>
> Hello @kkyyhh96 <https://github.com/kkyyhh96> and @shughestr
> <https://github.com/shughestr>,
>
>
> I locate the problem. This happened because a recent update on spreg
> hasn't been reflected in the mgwr. There is a current open PR #83
> <#83> from @weikang9009
> <https://github.com/weikang9009> should fix this problem, but it hasn't
> been merged yet.
>
>
> A temporary fix would be to pin spreg to an earlier version e.g.
> v.1.1.1. pip install spreg==1.1.1.
>
>
> Cheers,
>
>
> Ziqi
>
>
>
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#84 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AMUI22SNW76QHL3KFAOL7B3SCLGVHANCNFSM4QJZM7JQ>
> .
>
>
>
|
Hi Dave. I could do that, could you send me an email at liziqi1992[at]gmail.com? |
When I was running the example code of the project, I met the following error:
![image](https://user-images.githubusercontent.com/18168048/91082083-bdb5e800-e60d-11ea-89d9-cd2cf210dd79.png)
---> 2 mgwr_bw = mgwr_selector.search()
AttributeError: 'tuple' object has no attribute 'shape'
I only ran the cell [1]-[3] and then [5]-[6]. My python version is 3.8 on Ubuntu. The mgwr version is 2.1.1.
Please note that to read the data I unzipped the zip file and used the following code:
prenz = gp.read_file(ps.examples.get_path('prenzlauer.shp'))
The text was updated successfully, but these errors were encountered: