[Scipy-tickets] [SciPy] #472: TypeError: slice indices must be integers

SciPy scipy-tickets@scipy....
Fri Jul 27 08:45:54 CDT 2007


#472: TypeError: slice indices must be integers
--------------------+-------------------------------------------------------
 Reporter:  nils    |       Owner:  cdavid
     Type:  defect  |      Status:  new   
 Priority:  normal  |   Milestone:        
Component:  svm     |     Version:        
 Severity:  normal  |    Keywords:        
--------------------+-------------------------------------------------------
 python -i /usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/tests/test_all.py

 {{{
 ======================================================================
 ERROR: check_compact_predict (test_classification.test_classification)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/tests/test_classification.py", line
 291, in check_compact_predict
     results.compact()
   File "/usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/classification.py", line 87, in compact
     self.predictor.compact()
   File "/usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/predict.py", line 208, in compact
     svi = self.support_vectors[si:si + ci]
 TypeError: slice indices must be integers

 ======================================================================
 ERROR: check_compact_predict_values
 (test_classification.test_classification)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/tests/test_classification.py", line
 270, in check_compact_predict_values
     results.compact()
   File "/usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/classification.py", line 87, in compact
     self.predictor.compact()
   File "/usr/lib64/python2.4/site-
 packages/scikits/learn/machine/svm/predict.py", line 208, in compact
     svi = self.support_vectors[si:si + ci]
 TypeError: slice indices must be integers

 ----------------------------------------------------------------------
 Ran 42 tests in 19.966s

 FAILED (errors=2)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/472>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list