Giter Site home page Giter Site logo

oc1-cuda's People

Contributors

jrbancel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oc1-cuda's Issues

python 2.7.12 gives error

File "d:\SVM\code\OC1-CUDA-master\serialOC1.py", line 5, in   from kNN import ClassifierFile "d:\SVM\code\OC1-CUDA-master\kNN.py", line 90, in   cl1 = cKNN.classifyInstance(data1)File "d:\SVM\code\OC1-CUDA-master\kNN.py", line 79, in classifyInstance  counts[self.data[indices[i],class_idx]] += 1IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

calculation got stack

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 ]))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.