cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

Vector as feature #120

Closed jax79sg closed 6 years ago

jax79sg commented 6 years ago

Hi,

My input are high dimensional vectors, how would i insert them into the dat file? E.g. Class 0 Vector 1: [1.2 2.3 3.4] Vector 2: [-1 -2 3]

Data file A (Not accepted) 0 1:[1.2 2.3 3.4] 2:[-1 -2 3]

Data file B (Not accepted) 0 1:(1.2 2.3 3.4) 2:(-1 -2 3)

Data file C (Not accepted) 0 1:(1.2,2.3,3.4) 2:(-1,-2,3)

Data file D (Not accepted) 0 1:1.2,2.3,3.4 2:-1,-2,3

jax79sg commented 6 years ago

Thinking better after getting a night's proper sleep....that was a dumb question I asked, please ignore.