在libsvm中将输入文本文件作为训练数据集 [英] Making an input text file as a training data set in libsvm

查看:431
本文介绍了在libsvm中将输入文本文件作为训练数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用epanet进行水力模拟,并且得到了各种泄漏和正常流量,节点和链接的压力值.

我想使用libsvm训练这些输出值.我得到了不同格式的输出(液压仿真).

我的问题是是否有可能将该输出作为训练输入添加到libsvm.

解决方案

如果输出格式可以通用的CSV格式存储,则可以使用csv2libsvm将数据转换为libsvm格式.

git repo可以在这里找到: https://github.com/zygmuntz/phraug/blob/master/csv2libsvm.py

请注意,该工具是用python编写的.

I am working on hydraulic simulation using epanet, and I have got various leaky and normal flow, pressure values of nodes and links.

I want to train these output values using libsvm. I have got the output (hydraulic simulation) in different format.

My question is whether it is possible to add that output as training input to the libsvm.

解决方案

If your output format can be stored in a generic CSV format, you can use csv2libsvm to convert the data into libsvm format.

The git repo can be found here: https://github.com/zygmuntz/phraug/blob/master/csv2libsvm.py

Note that the tool is written in python.

这篇关于在libsvm中将输入文本文件作为训练数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆