我想使用 svmutil 函数https://github.com/Netflix/vmaf/tree/master/libsvm/python https://github.com/Netflix/vmaf/tree/master/libsvm/python在我的 Jupyter 笔记本中,该笔记本在 Google Colaboratory 上运行。
Running
import svmutil
给出以下错误:
ModuleNotFoundError: No module named 'svmutil'
如何在 colab 中安装这个 github 存储库?
首先下载 svmutil.py 文件并将其保存在运行 jupyter 笔记本的位置。然后使用导入 svmutil 函数
from svmutil import *
您可以使用它的功能
svm_train() : train an SVM model
svm_predict() : predict testing data
svm_read_problem() : read the data from a LIBSVM-format file.
svm_load_model() : load a LIBSVM model.
svm_save_model() : save model to a file.
evaluations() : evaluate prediction results.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)