在libsvm中将输入文本文件作为训练数据集 [英] Making an input text file as a training data set in 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屋!