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

Whether the svdd in libsvm can support negative examples? #128

Closed ma-xu closed 5 years ago

ma-xu commented 5 years ago

Whether the svdd or one class svm in libsvm can support negative examples?

The readme file says "For one-class SVM, label is not used and can be any number".

However, the link "https://github.com/cjlin1/libsvm/pull/74 " say "Support for negative examples in one-class added".

So, I am really confused. Thank you very much for your patience and I am looking forward for your reply.

cjlin1 commented 5 years ago

For oneclass or svdd, the input is not labelled.. So it doesn't matter if you indicate the training labels as positive or negative

On 2018-11-06 09:00, Xu Ma wrote:

Whether the svdd or one class svm in libsvm can support negative examples?

The readme file says "For one-class SVM, is not used and can be any number".

However, the link "#74 [1] " say "Support for negative examples in one-class added".

So, I am really confused. Thank you very much for your patience and I am looking forward for your reply.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [2], or mute the thread [3]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/128", "url": "https://github.com/cjlin1/libsvm/issues/128", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Whether the svdd in libsvm can support negative examples? (#128)", "sections": [ { "text": "", "activityTitle": "Xu Ma", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@13952522076", "facts": [ { "name": "Repository: ", "value": "cjlin1/libsvm" }, { "name": "Issue #: ", "value": 128 } ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 128,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 128\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/cjlin1/libsvm/issues/128" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 406731445\n}" } ], "themeColor": "26292E" } ]

Links:

[1] https://github.com/cjlin1/libsvm/pull/74 [2] https://github.com/cjlin1/libsvm/issues/128 [3] https://github.com/notifications/unsubscribe-auth/AFGwnu_FL79bDnEDJRxAPpHV_R01FN1-ks5usN8pgaJpZM4YPjq1

ma-xu commented 5 years ago

For oneclass or svdd, the input is not labelled.. So it doesn't matter if you indicate the training labels as positive or negative On 2018-11-06 09:00, Xu Ma wrote: Whether the svdd or one class svm in libsvm can support negative examples? The readme file says "For one-class SVM, is not used and can be any number". However, the link "#74 [1] " say "Support for negative examples in one-class added". So, I am really confused. Thank you very much for your patience and I am looking forward for your reply. -- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [2], or mute the thread [3]. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#128", "url": "#128", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } }, { @.": "MessageCard", @.": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Whether the svdd in libsvm can support negative examples? (#128)", "sections": [ { "text": "", "activityTitle": "Xu Ma", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": @.", "facts": [ { "name": "Repository: ", "value": "cjlin1/libsvm" }, { "name": "Issue #: ", "value": 128 } ] } ], "potentialAction": [ { "name": "Add a comment", @.": "ActionCard", "inputs": [ { "isMultiLine": true, @.": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", @.": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 128,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", @.": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 128\n}" }, { "targets": [ { "os": "default", "uri": "#128" } ], @.": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", @.***": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 406731445\n}" } ], "themeColor": "26292E" } ] Links: ------ [1] #74 [2] #128 [3] https://github.com/notifications/unsubscribe-auth/AFGwnu_FL79bDnEDJRxAPpHV_R01FN1-ks5usN8pgaJpZM4YPjq1

Thank you , but in the svdd paper, svdd is able to support negative examples. And I saw https://github.com/cjlin1/libsvm/pull/74 seem added this function. So, in libsvm, one-class-svm is not support for negative examples now?

cjlin1 commented 5 years ago

No we don't plan to support this

On 2018-11-08 03:27, Xu Ma wrote:

For oneclass or svdd, the input is not labelled.. So it doesn't matter if you indicate the training labels as positive or negative … On 2018-11-06 09:00, Xu Ma wrote: Whether the svdd or one class svm in libsvm can support negative examples? The readme file says "For one-class SVM, is not used and can be any number". However, the link "#74 [1] [1] " say "Support for negative examples in one-class added". So, I am really confused. Thank you very much for your patience and I am looking forward for your reply. -- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [2], or mute the thread [3]. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#128 [2]", "url": "#128 [2]", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } }, { @.": "MessageCard", @.": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Whether the svdd in libsvm can support negative examples? (#128 [2])", "sections": [ { "text": "", "activityTitle": "XU MA", "activityImage":

"https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": @.", "facts": [ { "name": "Repository: ", "value": "cjlin1/libsvm" }, { "name": "Issue #: ", "value": 128 } ] } ], "potentialAction": [ { "name": "Add a comment", @.": "ActionCard", "inputs": [ { "isMultiLine": true, @.": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", @.": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "IssueComment",\n"repositoryFullName": "cjlin1/libsvm",\n"issueId": 128,\n"IssueComment": "{{IssueComment.value}}"\n}" } ] }, { "name": "Close issue", @.": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "cjlin1/libsvm",\n"issueId": 128\n}" }, { "targets": [ { "os": "default", "uri": "#128 [2]" } ], @.": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", @.***": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "MuteNotification",\n"threadId": 406731445\n}" } ], "themeColor": "26292E" } ] Links: ------ [1] #74 [1] [2] #128 [2] [3]

https://github.com/notifications/unsubscribe-auth/AFGwnu_FL79bDnEDJRxAPpHV_R01FN1-ks5usN8pgaJpZM4YPjq1

Thank you , but in the svdd paper, svdd is able to support negative examples. And I saw #74 [1] seem added this function. So, in libsvm, one-class-svm is not support for negative examples now?

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [3], or mute the thread [4]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/128#issuecomment-436747544", "url": "https://github.com/cjlin1/libsvm/issues/128#issuecomment-436747544", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [cjlin1/libsvm] Whether the svdd in libsvm can support negative examples? (#128)", "sections": [ { "text": "", "activityTitle": "Xu Ma", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@13952522076", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 128,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 128\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/cjlin1/libsvm/issues/128#issuecomment-436747544" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 406731445\n}" } ], "themeColor": "26292E" } ]

Links:

[1] https://github.com/cjlin1/libsvm/pull/74 [2] https://github.com/cjlin1/libsvm/issues/128 [3] https://github.com/cjlin1/libsvm/issues/128#issuecomment-436747544 [4] https://github.com/notifications/unsubscribe-auth/AFGwnj9Vu5MEtLlqvH_OVoXx9HpNaHuoks5uszQ-gaJpZM4YPjq1

ma-xu commented 5 years ago

Thank you very much for your reply. Have a good day ^_^