Skip to content
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

creditcard.csv data loading error in VB.NET sample #183

Closed
rrvenki opened this issue Dec 17, 2018 · 9 comments
Closed

creditcard.csv data loading error in VB.NET sample #183

rrvenki opened this issue Dec 17, 2018 · 9 comments

Comments

@rrvenki
Copy link

rrvenki commented Dec 17, 2018

In CreditCardFraudDetection.Trainer project (VB.NET version), under input folder the creditcard.csv file is generated using the unzip feature in code. Works fine.
In ConsoleHelpers.vb file, line 100 we get an error "Parsing failed with an exception: Stream reading encountered exception". Detailed Inner Exception as below.

Could not open file 'D:\Source\Repos\machinelearning-samples\samples\visualbasic\getting-started\BinaryClassification_CreditCardFraudDetection\CreditCardFraudDetection.Trainer\bin\Debug\netcoreapp2.1......\assets'. Error is: Access to the path 'D:\Source\Repos\machinelearning-samples\samples\visualbasic\getting-started\BinaryClassification_CreditCardFraudDetection\CreditCardFraudDetection.Trainer\assets' is denied.

I'm not a local admin in this PC. creditcard.csv is created from the given zip file by the program running in my user id. I gave full control for the entire root folder. But still no use. How to get rid of "System.UnauthorizedAccessException"? I understand this is an OS issue not a program issue. But the program has created this file and the program itself is unable to read it. Please help.

@CESARDELATORRE
Copy link
Contributor

We currently have no VB.NET samples in this repo. Only F# and C#.
Can you specify the source of your VB.NET version of sample?
Thanks.

@rrvenki
Copy link
Author

rrvenki commented Dec 18, 2018 via email

@rrvenki
Copy link
Author

rrvenki commented Dec 18, 2018

Found bug and resolved the issue.
For project BinaryClassification_CreditCardFraudDetection\CreditCardFraudDetection.Trainer\ModelBuilder.vb file line number 37 is
_dataSetFile = assetsPath
Change this line to
_dataSetFile = Path.Combine(_assetsPath, "input\creditcard.csv")

This will solve the AuthorizationException error.

If this problem is pointing to incorrect repository (C# version), please transfer to VB version as we could not find a way to raise a issue there.

@justinormont
Copy link
Contributor

@Nukepayload2: Would it be possible to enable Issues in your repo? Btw, nice to see a VB.NET example.

@CESARDELATORRE: Are we looking to have samples in VB.NET?

@CESARDELATORRE
Copy link
Contributor

CESARDELATORRE commented Dec 18, 2018

We're not including/maintaining VB.NET samples in our repo but pointing to third party repos from the community such as https://github.com/Nukepayload2/machinelearning-samples

But Microsoft is not maintaining the VB.NET code in those repos, but the community.

I sent an email to the public email from https://github.com/Nukepayload2 , the owner of the VB.NET repo. Please, @Nukepayload2, enable ISSUES in your VB.NET samples repo so folks in the community can help, ok? 👍

@Nukepayload2
Copy link

@justinormont @CESARDELATORRE I've enabled ISSUES in my VB.NET samples repo.

@justinormont
Copy link
Contributor

@Nukepayload2: Thanks much.

@rrvenki
Copy link
Author

rrvenki commented Dec 19, 2018 via email

@CESARDELATORRE
Copy link
Contributor

@rrvenki Please, add your issue and/or fix here at the VB.NET repo:
https://github.com/Nukepayload2/machinelearning-samples/issues

Closing this issue. Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants