using SVMLightLoader
# load the whole file
vectors, labels = load_svmlight_file("test.txt")
# the vector dimension can be specified
ndim = 20
vectors, labels = load_svmlight_file("test.txt", ndim)
println(size(vectors, 1)) # 20
# iterate the file line by line
for (vector, label) in SVMLightFile("test.txt")
dosomething(vector, label)
end
for (vector, label) in SVMLightFile("test.txt", ndim)
dosomething(vector, label)
end
-
Notifications
You must be signed in to change notification settings - Fork 4
Loader of svmlight / liblinear format files
License
IshitaTakeshi/SVMLightLoader.jl
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Loader of svmlight / liblinear format files
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published