
python
饺子醋
这个作者很懒,什么都没留下…
展开
-
Ubuntu下protobuf及其python runtime的安装
1.下载、解压protobuf#wget https://github.com/google/protobuf/releases/download/v3.0.0-beta-4/protobuf-python-3.0.0-beta-4.tar.gz#tar zxvf protobuf-python-3.0.0-beta-4.tar.gz2.安装protobuf compi原创 2016-07-25 12:38:43 · 3198 阅读 · 0 评论 -
sklearn错误解决:ValueError: Class label 0 not present
问题来源最近在使用sklearn中的svm进行文本分类的工作,在使用sklearn集成的Grid Search进行参数寻优的时候出现bug:ValueError: Class label 0 not present,将debug的结论记录在此。出错代码svr = SVC(kernel='rbf', probability=True, class_weight={0:1.0, 1:1.5})gam原创 2017-07-27 18:28:19 · 5226 阅读 · 0 评论