【发布时间】:2016-07-24 19:24:42
【问题描述】:
我刚刚使用了libsvm的demo数据heart_scale来测试grid.py,但不幸的是,它总是输出类似这样的错误:
Traceback (most recent call last):
File "grid.py", line 266, in run
if rate is None: raise RuntimeError('get no rate')
RuntimeError: get no rate
worker local quit.
我尝试过使用不同版本的 libsvm 和 gnuplot,但遇到了同样的错误。
Versions of libsvms' are : 3.17 and 3.21
Versions of gnuplots' are : 4.2.6 and 5.0.3
Version of Python : 2.7
另外,我已经修改了grid.py中的目录,
self.svmtrain_pathname = os.path.join(dirname, r'F:\tools\libsvm-master\windows\svm-train.exe')
和
self.gnuplot_pathname = r'C:\gnuplot\bin\gnuplot.exe'
我在其他问题中阅读了一些答案,但仍然没有用。 链接:output “get no rate” from grid.py of libsvm Error from grid.py of libsvm
谁能帮我弄清楚如何解决这个问题。非常感谢。
【问题讨论】:
标签: python machine-learning svm libsvm