gpt4 book ai didi

以 svmlight 格式导出 numpy/列表的 python 程序

转载 作者:太空狗 更新时间:2023-10-30 00:33:29 29 4
gpt4 key购买 nike

有什么方法可以将 python 数组导出为 SVM light 格式?

最佳答案

scikit-learn 中有一个:

http://scikit-learn.org/stable/modules/generated/sklearn.datasets.dump_svmlight_file.html

这是基本的,但它适用于 numpy 数组和 scipy.sparse 矩阵。

关于以 svmlight 格式导出 numpy/列表的 python 程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9301191/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com