How to input data(csv) TO R-script model?

NAW123 16 Reputation points
2022-05-31T23:33:33.303+00:00

Hi,
I loaded all csv files, but R-script only allow two files for input ports. So I zipped all use 7-zip and verifed all files are same as not zipped before and loaded to Azure ml studio and connect it to R-script on 3rd port.

Each time I run it, it says no connection, zip file corrupt.

PLZ point out what is it and how to input datasets?

Thanks,
N.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,333 questions
{count} votes

2 answers

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2022-06-01T12:53:20.8+00:00

    @NAW123 While using the script bundle i.e 3rd port you need to place all the required files in a folder on your local machine and then zip the folder and upload it as a file dataset. If you try to select all files & create a zip without placing them in a folder the module will be unable to read.

    For example, I tried with a sample csv where the file is placed in a folder and then the folder is zipped. I then, uploaded the zip file as file dataset to Azure ML studio, use this dataset in the designer canvas and connect it to the 3rd port and access the same using the corresponding path as of zipped file with a prefix of Script Bundle.

    207527-image.png

    The result in this case is displaying the CSV data as output from result dataset 2.

    207581-image.png

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    0 comments No comments

  2. NAW123 16 Reputation points
    2022-06-30T21:51:41.57+00:00

    I tried folder thing, not working. Then I select all from within the folder, right click-> send to compression file.

    Now, it's connected, can open it. It worked!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.