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

calculation got stack #3

Open
Sandy4321 opened this issue Nov 6, 2017 · 1 comment
Open

calculation got stack #3

Sandy4321 opened this issue Nov 6, 2017 · 1 comment

Comments

@Sandy4321
Copy link

I changed print statements to be compatible with python 3 and run it on Windows computer
but simulation got stack, pls help

e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\kNN.py:79: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
counts[self.data[indices[i],class_idx]] += 1
0.0 1.0
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\kNN.py:28: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
counts[data[indices[i],class_idx]] += 1
0.0 1.0
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:42: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Lr[cat[index]] += 1
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:39: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Ll[cat[index]] += 1
Best Parallel Split: 0 1.55
R 0
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:93: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Lr[cat[index]] += 1
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:90: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Ll[cat[index]] += 1
[ 1. 0. -1.55] [ 1.09204545 0. -1.55 ]
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:115: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Lr[cat[index]] += 1
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:112: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Ll[cat[index]] += 1
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:130: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Lr[cat[index]] += 1
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:127: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Ll[cat[index]] += 1
H 0.428571, H1 0.428571
[ 1. 0. -1.55] [ 1. 0.17125 -1.55 ]
H 0.428571, H1 0.300000
R 1
[ 0.83089482 0.92116927 0.83181946] [-1.53025312 0.92116927 0.83181946]
e:\Trees_multiway_split\code\OC1-CUDA-master\OC1-CUDA-master\serialOC1_changed_python3.py:118: RuntimeWarning: invalid value encountered in double_scalars
GiniR = 1 - sum([(r/float(Tr))**2 for r in Lr])
H nan, H1 0.516667
R 2
[ 0.90009466 0.61285603 0.08294005] [-0.68661247 0.61285603 0.08294005]
H nan, H1 0.516667
R 3
[ 0.17561136 0.55443074 0.6042893 ] [-0.99404078 0.55443074 0.6042893 ]
H nan, H1 0.516667
R 4
[ 0.32534219 0.7367024 0.28565869] [-0.95637949 0.7367024 0.28565869]
H 0.577778, H1 0.516667
[-0.95637949 0.7367024 0.28565869] [-0.95637949 0.73574972 0.28565869]
H 0.516667, H1 0.516667
(0.42857142857142855, array([ 1. , 0.17125, -1.55 ]))

@Sandy4321
Copy link
Author

sorry my mistake it was because of figure, if I close figure it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant