Skip to content
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

NameError: name 'cvRfHierarchyT' is not defined #4

Open
arilwan opened this issue Jun 6, 2020 · 3 comments
Open

NameError: name 'cvRfHierarchyT' is not defined #4

arilwan opened this issue Jun 6, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@arilwan
Copy link

arilwan commented Jun 6, 2020

@SalilVishnuKapur
Can't figure out where this variable is defined in the Pointfeatures.py script, but getting this error:

Traceback (most recent call last):
  File "PointFeatures.py", line 163, in <module>
    arrRfH = [np.mean(cvRfHierarchyT[0]), np.mean(cvRfHierarchyT[1]), np.mean(cvRfHierarchyT[2]), np.mean(cvRfHierarchyT[3]), np.mean(cvRfHierarchyT[4]), np.mean(cvRfHierarchyT[5])]
NameError: name 'cvRfHierarchyT' is not defined
@SalilVishnuKapur SalilVishnuKapur self-assigned this Jun 6, 2020
@SalilVishnuKapur SalilVishnuKapur added the bug Something isn't working label Jun 6, 2020
@SalilVishnuKapur
Copy link
Owner

Line 578 cvRfHierarchyT = transformer(cvRfHierarchy[0])
https://github.com/SalilVishnuKapur/Predicting-Transportation-Modes-of-GPS-Trajectories/blob/master/PointFeatures.py

Let me know if it helps?

@arilwan
Copy link
Author

arilwan commented Jun 6, 2020

@SalilVishnuKapur

So it appears cvRfHierarchyT is used before its declaration?

$python PointFeatures.py
Traceback (most recent call last):
  File "PointFeatures.py", line 163, in <module>
    arrRfH = [np.mean(cvRfHierarchyT[0]), np.mean(cvRfHierarchyT[1]), np.mean(cvRfHierarchyT[2]), np.mean(cvRfHierarchyT[3]), np.mean(cvRfHierarchyT[4]), np.mean(cvRfHierarchyT[5])]
NameError: name 'cvRfHierarchyT' is not defined

PointFeatures.py script issues NameError. (Line 163)

@SalilVishnuKapur
Copy link
Owner

I believe this bug came because of the more class oriented project modification that I had planned to do. But unfortunately, I couldn't take out time to finish that. But in few days I will surely get this done with even better developer documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants