Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 2 列的数据集:文本和标签 为了运行这部分代码,我需要将我的训练和测试数据转换为 libsvm 的格式,如何将 csv 格式转换为 libsvm?
X, y, X_test, y_test = load_svmlight_files((train_data, test_data), dtype='float32') # 加载tf向量