Is this an error in Assignment 3 - Problem 1?

Moderator: Computer Vision

Notschko
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 27. Nov 2005 18:00
Wohnort: Frankfurt
Kontaktdaten:

Is this an error in Assignment 3 - Problem 1?

Beitrag von Notschko » 2. Jul 2013 10:36

Hi,

When I load the matrix a3p1_tdata.mat I'm getting [x1_i x2_i label_i] for each row i.
But when I look in the given file "problem1a.m" the train_svm_s( data, labels) is called by the following code:

[w, b, support_vectors] = train_svm_s(training_data( 1:2, : ), training_data( end, : ))

This isn't right, is it? Because I'm using the last row of the matrix for the labels instead of the last column.

Thanx,
Notschko

Budderick
Neuling
Neuling
Beiträge: 4
Registriert: 11. Okt 2010 17:32

Re: Is this an error in Assignment 3 - Problem 1?

Beitrag von Budderick » 2. Jul 2013 10:56

Hey,
you are right, but that doesn't mean that the assignment is wrong. You have to adapt the input data in load_data to the given problem (it's quite easy :wink: ).
If you do that, you can call [w, b, support_vectors] = train_svm_s(training_data( 1:2, : ), training_data( end, : )).

Greetings

Antworten

Zurück zu „Computer Vision“