-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classification (Multi-class) problem #44
Comments
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]. [ { ***@***.***": "http://schema.org", ***@***.***":
"EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target":
"#44", "url":
"#44", "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": "Classification
(Multi-class) problem (#44)", "sections": [ { "text": "",
"activityTitle": "**piraye**", "activityImage":
"https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": ***@***.***", "facts": [ { "name":
"Repository: ", "value": "cjlin1/liblinear" }, { "name": "Issue #: ",
"value": 44 } ] } ], "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/liblinear\",\n\"issueId\": 44,\n\"IssueComment\":
\"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue",
***@***.***": "HttpPOST", "target": "https://api.github.com", "body":
"{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\":
\"cjlin1/liblinear\",\n\"issueId\": 44\n}" }, { "targets": [ { "os":
"default", "uri": "#44" } ],
***@***.***": "OpenUri", "name": "View on GitHub" }, { "name":
"Unsubscribe", ***@***.***": "HttpPOST", "target":
"https://api.github.com", "body": "{\n\"commandName\":
\"MuteNotification\",\n\"threadId\": 367326587\n}" } ], "themeColor":
"26292E" } ]
Links:
------
[1] #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 ***@***.***> 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]. [ { ***@***.***": "http://schema.org", ***@***.***":
> "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target":
> "#44", "url":
> "#44", "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": "Classification
> (Multi-class) problem (#44)", "sections": [ { "text": "",
> "activityTitle": "**piraye**", "activityImage":
> "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
> "activitySubtitle": ***@***.***", "facts": [ { "name":
> "Repository: ", "value": "cjlin1/liblinear" }, { "name": "Issue #: ",
> "value": 44 } ] } ], "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/liblinear\",\n\"issueId\": 44,\n\"IssueComment\":
> \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue",
> ***@***.***": "HttpPOST", "target": "https://api.github.com", "body":
> "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\":
> \"cjlin1/liblinear\",\n\"issueId\": 44\n}" }, { "targets": [ { "os":
> "default", "uri": "#44" } ],
> ***@***.***": "OpenUri", "name": "View on GitHub" }, { "name":
> "Unsubscribe", ***@***.***": "HttpPOST", "target":
> "https://api.github.com", "body": "{\n\"commandName\":
> \"MuteNotification\",\n\"threadId\": 367326587\n}" } ], "themeColor":
> "26292E" } ]
>
> Links:
> ------
> [1] #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
<#44 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVox1jKeSDYvAkQaeGgDn01sPTjxPCuYks5uQgWugaJpZM4V5PV7>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: