Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    $\begingroup$ So you already have the URLs in CSV format? Like on each line there is an URL and a catagory name, separated by a comma? It's hard to say how to best do this without an example, even if it only had a small number of URLs $\endgroup$ Commented Apr 4, 2016 at 13:30
  • $\begingroup$ Hard to format in this comment, but my training file looks like this: Column 1: Import["partstown.com/is-bin/intershop.static/WFS/Reedy-PartsTown-Site/…, Column 2: "Switches & Dials" $\endgroup$ Commented Apr 4, 2016 at 15:07
  • $\begingroup$ I just happened to reopen this and saw the new question, but it might not have been seen. Generally here, the questions should be separate and self-contained, so that if one question is answered and you have a followup, you could post it as a new question. Sometimes the new question might be too minor for a post of its own, and then the chatroom linked at the bottom is a good place for it. You might not have enough reputation to go to the chat, but I think you could get more by doing some of the things in the tour. $\endgroup$ Commented Apr 6, 2016 at 7:52
  • $\begingroup$ As to your current question, try to get the URLs for the images you need categorized into a list, like "needsCategories = {"http://.....", "http://......",.....}` Then you can Map the classifying function onto this list with just one line, classifiedCategories = imageclassifier /@ needsCategories. So now, needsCategories and classifiedCategories are both lists of strings. You can convert them into a table and export to CSV via Export["results.csv", Transpose[ { needsCategories , classifiedCategories} ]] $\endgroup$ Commented Apr 6, 2016 at 7:56
  • $\begingroup$ @JasonB I checked out the tour and will complete it, thank you for that recommendation. I will post my follow up as a new question. I wasn't quite able to map them onto one line. $\endgroup$ Commented Apr 7, 2016 at 20:29