Skip to content

This is convert program from matlab structure(libsvm, liblinear) to c structure

Notifications You must be signed in to change notification settings

E-Tsubo/svm_matlab2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2012/12/02 Written by H. T.

This is convert program from matlab structure(libsvm, liblinear) to c structure. matlab --> c (mat2libsvm, mat2liblinear) c <-- matlab (only liblinear2mat. about libsvm, Sorry, not yet)

INSTALL: At first, please type 'make' to compile. make.m is MakeFile.

NOTE:I devloped this code with libsvm-3.14 and liblinear-1.92.

USAGE: libsvm [label_vector, instance_matrix] = libsvmread('heart_scale.txt'); model=svmtrain(label_vector,instance_matrix); model=train(label_vector,instance_matrix); mat2libsvm(model, 'output_name'); <- convert matlab structure to c structure(libsvm structure)

Usage: liblinear [label_vector, instance_matrix] = libsvmread('heart_scale.txt'); model=train(label_vector,instance_matrix); mat2liblinear(model, 'output_name'); <- convert matlab structure to c structure(liblinear structure)

About

This is convert program from matlab structure(libsvm, liblinear) to c structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published