liblinear
liblinear copied to clipboard
Classification (Multi-class) problem
Hi,
I have to classifier my input data to multi class and I have trouble to use liblinear to classify it and give me the desired output can you point me please?
input data: ! COUNT !! LABEL !! PATTERN !! FEATURES ! 0.1 !! 42 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.8 !! 43 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.1 !! 44 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.6 !! 42 !! NOUN DE NOUN !! 0:umbral 1:de 2:pobreza .....
the desired output should look like l that, which is a list of weights for each feature/label 0:umbral/42 = 1.0054 1:de/42 = 0.0 2:pobreza/42 = 1.014 0:umbral/43 = 1.0044 1:de/43 = 0.0 2:pobreza/43 = 1.004 ....
thanks for your time to guide me.
Your feature values must be numeric. So each line should be like 1 1:2 2:3
On 2018-08-12 01:10, piraye wrote:
Hi,
I have to classifier my input data to multi class and I have trouble to use liblinear to classify it and give me the desired output can you point me please?
input data: ! COUNT !! LABEL !! PATTERN !! FEATURES ! 0.1 !! 42 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.8 !! 43 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.1 !! 44 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.6 !! 42 !! NOUN DE NOUN !! 0:umbral 1:de 2:pobreza .....
the desired output should look like l that, which is a list of weights for each feature/label 0:umbral/42 = 1.0054 1:de/42 = 0.0 2:pobreza/42 = 1.014 0:umbral/43 = 1.0044 1:de/43 = 0.0 2:pobreza/43 = 1.004 ....
thanks for your time to guide me.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/liblinear/issues/44", "url": "https://github.com/cjlin1/liblinear/issues/44", "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": "Classification (Multi-class) problem (#44)", "sections": [ { "text": "", "activityTitle": "piraye", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@sevilaybayatli", "facts": [ { "name": "Repository: ", "value": "cjlin1/liblinear" }, { "name": "Issue #: ", "value": 44 } ] } ], "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/liblinear",\n"issueId": 44,\n"IssueComment": "{{IssueComment.value}}"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "cjlin1/liblinear",\n"issueId": 44\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/cjlin1/liblinear/issues/44" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "MuteNotification",\n"threadId": 367326587\n}" } ], "themeColor": "26292E" } ]
Links:
[1] https://github.com/cjlin1/liblinear/issues/44 [2] https://github.com/notifications/unsubscribe-auth/AFGwnikYtGSO3IgO09pM4_do9S01DsgHks5uPw_sgaJpZM4V5PV7
Hello,
I have input data and want to classify it to two class and class's labels are 12 and 13 as you see below, but when try to train it with this command I go this error message:
sevilay@sevilay-linux:~/liblinear$ ./train heart_scale Wrong input format at line 1
13 1:0.5767 2:1 3:0 4:2 5:1 12 1:0.4233 2:1 3:0 4:2 5:1 13 1:0.5427 2:1 3:0 4:2 5:1 12 1:0.4573 2:1 3:0 4:2 5:1 13 1:0.5014 2:1 3:0 4:2 5:1 12 1:0.4986 2:1 3:0 4:2 5:1 13 1:0.5308 2:1 3:0 4:2 5:1 12 1:0.4692 2:1 3:0 4:2 5:1 13 1:0.555 2:1 3:0 4:2 5:1 12 1:0.445 2:1 3:0 4:2 5:1 13 1:0.4978 2:1 3:0 4:2 5:1 12 1:0.5022 2:1 3:0 4:2 5:1 13 1:0.5018 2:1 3:0 4:2 5:1 12 1:0.4982 2:1 3:0 4:2 5:1 13 1:0.4956 2:1 3:0 4:2 5:1
as you see from this train data I want to obtain feature with their weights :
ұр: 1.0054 тап:1.014 жаса:1.003 кір:1.0044
could you please point me how should give the input format to obtain desired output.
thanks for your help
best wishes
Sevilay
On Tue, Aug 14, 2018 at 2:03 AM, cjlin1 [email protected] wrote:
Your feature values must be numeric. So each line should be like 1 1:2 2:3
On 2018-08-12 01:10, piraye wrote:
Hi,
I have to classifier my input data to multi class and I have trouble to use liblinear to classify it and give me the desired output can you point me please?
input data: ! COUNT !! LABEL !! PATTERN !! FEATURES ! 0.1 !! 42 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.8 !! 43 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.1 !! 44 !! NOUN DE NOUN !! 0:millión 1:de 2:euro ! 0.6 !! 42 !! NOUN DE NOUN !! 0:umbral 1:de 2:pobreza .....
the desired output should look like l that, which is a list of weights for each feature/label 0:umbral/42 = 1.0054 1:de/42 = 0.0 2:pobreza/42 = 1.014 0:umbral/43 = 1.0044 1:de/43 = 0.0 2:pobreza/43 = 1.004 ....
thanks for your time to guide me.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/liblinear/issues/44", "url": "https://github.com/cjlin1/liblinear/issues/44", "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": "Classification (Multi-class) problem (#44)", "sections": [ { "text": "", "activityTitle": "piraye", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@sevilaybayatli", "facts": [ { "name": "Repository: ", "value": "cjlin1/liblinear" }, { "name": "Issue #: ", "value": 44 } ] } ], "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/liblinear",\n"issueId": 44,\n"IssueComment": "{{IssueComment.value}}"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "cjlin1/liblinear",\n"issueId": 44\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/cjlin1/liblinear/issues/44" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "MuteNotification",\n"threadId": 367326587\n}" } ], "themeColor": "26292E" } ]
Links:
[1] https://github.com/cjlin1/liblinear/issues/44 [2] https://github.com/notifications/unsubscribe-auth/AFGwnikYtGSO3IgO09pM4_ do9S01DsgHks5uPw_sgaJpZM4V5PV7
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cjlin1/liblinear/issues/44#issuecomment-412694743, or mute the thread https://github.com/notifications/unsubscribe-auth/AVox1jKeSDYvAkQaeGgDn01sPTjxPCuYks5uQgWugaJpZM4V5PV7 .