libsvm icon indicating copy to clipboard operation
libsvm copied to clipboard

libsvmread can't open file in matlab

Open fishlao opened this issue 5 years ago • 1 comments

Recently, there is a problem when i used libsvm in matlab. when i used the function libsvmread, the filename used is not the same as i input.

qq 20180722112301

and then i copy the same file in path 'E:/test.txt', i can success in loading the data in matlab. the location of file is right,and i wonder how should i solve the problem if i consist to use this long path.

fishlao avatar Jul 22 '18 03:07 fishlao

On linux I can read a file with your file name without problem:

[y,x]=libsvmread('../heart_scale'); [y,x]=libsvmread('../heart_scale'); !cp ../heart_scale ../train_data_scale.txt !cp ../heart_scale ../train_data_scale.txt [y,x]=libsvmread('../train_data_scale.txt'); [y,x]=libsvmread('../train_data_scale.txt');

On 2018-07-22 11:36, fishlao wrote:

Recently, there is a problem when i used libsvm in matlab. when i used the function libsvmread, the filename used is not the same as i input.

[1]

and then i copy the same file in path 'E:/test.txt', i can success in loading the data in matlab. the location of file is right,and i wonder how should i solve the problem if i consist to use this long path.

-- 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/122", "url": "https://github.com/cjlin1/libsvm/issues/122", "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": "libsvmread can't open file in matlab (#122)", "sections": [ { "text": "", "activityTitle": "fishlao", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@fishlao", "facts": [ { "name": "Repository: ", "value": "cjlin1/libsvm" }, { "name": "Issue #: ", "value": 122 } ] } ], "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": 122,\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": 122\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/cjlin1/libsvm/issues/122" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n"commandName": "MuteNotification",\n"threadId": 359097372\n}" } ], "themeColor": "26292E" } ]

Links:

[1] https://user-images.githubusercontent.com/11990207/43041998-771a9f9a-8da3-11e8-822f-657bd8bcf557.png [2] https://github.com/cjlin1/libsvm/issues/122 [3] https://github.com/notifications/unsubscribe-auth/AFGwnnG7Eo5ZjlrzIPwPWQPUy4oaxwhiks5uI_NOgaJpZM4VZ2Qc

cjlin1 avatar Jul 22 '18 10:07 cjlin1