Shark-ML / Shark

The Shark Machine Leaning Library. See more:
http://shark-ml.github.io/Shark/
GNU Lesser General Public License v3.0
504 stars 131 forks source link

EpsilonSvmTrainer error #270

Open cydcydcyd opened 5 years ago

cydcydcyd commented 5 years ago

when I use EpsilonSvmTrainer, I got some errors in SvmProblems.h image image

cydcydcyd commented 5 years ago

Is there any example of EpsilonSvmTrainer? I'm not sure if I'm using it correctly.

cydcydcyd commented 5 years ago

Here is my code: image

Unhandled exception: image

Ulfgard commented 5 years ago

could you try compiling in debug mode?


From: cydcydcyd [notifications@github.com] Sent: Sunday, April 28, 2019 4:38 AM To: Shark-ML/Shark Cc: Subscribed Subject: Re: [Shark-ML/Shark] EpsilonSvmTrainer error (#270)

Here is my code: [image]https://user-images.githubusercontent.com/31031796/56857550-7aa81e00-69a1-11e9-8400-bded39e7bb95.png

Unhandled exception: [image]https://user-images.githubusercontent.com/31031796/56857563-aa572600-69a1-11e9-946b-ecb71524198d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Shark-ML/Shark/issues/270#issuecomment-487335912, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADSZGBRJKXVSLJ3LICT4TYLPSUE2HANCNFSM4HITIUGA.

cydcydcyd commented 5 years ago

@Ulfgard could you help me about the Unhandled exception? I try to compiling in debug mode, but it doesn't help.

Ulfgard commented 5 years ago

this was to check whether an exception would be thrown and to get more information about what is happening. I am just todya returned from vacation.


From: cydcydcyd [notifications@github.com] Sent: Monday, April 29, 2019 2:35 AM To: Shark-ML/Shark Cc: Oswin Krause; Mention Subject: Re: [Shark-ML/Shark] EpsilonSvmTrainer error (#270)

@Ulfgardhttps://github.com/Ulfgard could you help me about the Unhandled exception? I try to compiling in debug mode, but it doesn't help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Shark-ML/Shark/issues/270#issuecomment-487428780, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADSZGBQXPZJX7POBKEBISVDPSY7GLANCNFSM4HITIUGA.

Ulfgard commented 5 years ago

Oh sorry, i just realized i read this wrong on my mobile while on vacation. The second template parameter must be RealVector as well. i.e. single labels are encoded as vectors as size 1, as for example in LinearRegression or RandomForest

cydcydcyd commented 5 years ago

@Ulfgard If I set the second template parameter RealVector, compilation errors will occur: image image image