Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (5.8k points)

I have successfully deployed an ML web service using the Reader module to take in CSV data from my blob storage. I can see the CSV data is correct by visualizing it in the experiment.

However, when I try to provide the SAME CSV data as input to the web service using the BES example from this tutorial, I get the following error:

Error 1000: AFx Library exception: table: The data set being scored must

contain all features used during training, missing feature(s): 'Col 2'.

This error makes no sense as the SAME data is successfully accepted by the experiment.

Also, note that the same problem occurs when I use the TSV format.

1 Answer

0 votes
by (9.6k points)

In the first cell, paste this code:

with open('input1data.csv','a') as myfile:

    myfile.write("col 1,col 2\n")

    myfile.write("1.32,somestring\n")

    myfile.write("3.34,anotherstring\n")

 

On the next cell, paste this:

with open('myresults.csv','r') as myfile:
    for line in myfile:
        print(line)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...