SVMLightWriter.jl

Lightning-fast svmlight writer
Author AStupidBear
Popularity
1 Star
Updated Last
3 Years Ago
Started In
October 2019

Lightning-fast svmlight writer

Build Status Coverage

Installation

using Pkg
pkg"add SVMLightWriter"

Usage

using SVMLightWriter, SparseArrays
x = [0 2; 3.1 4.2]
y = [1, -1]
x_sp = sparse(x)

You can dump a dense or sparse array to an IOBuffer or a file

dump_svmlight_file(x, y, IOBuffer())
dump_svmlight_file(x_sp, y, IOBuffer()) 
dump_svmlight_file(x, y, "tmp.svmlight")

Used By Packages