U2U Blog

for developers and other creative minds

Loading data in Azure Machine Learning

In July 2014 Microsoft made their cloud-based data mining environment (known as Azure Machine Learning, or AzureML) available to the public. With this platform users can analyze large amounts of data without the need to install and configure special software: A browser and a credit card is all you need Glimlach. With the increasing number of people in a number-crunching job (data scientists) it is nice to see Microsoft focusing on this.

In a previous blog post (see http://blogs.u2u.be/u2u/post/2014/07/14/First-Steps-in-Azure-Machine-Learning.aspx) I show how to get started with setting up an AzureML environment. In this blog post we take a look at loading data in AzureML.

Supported data formats

Currently AzureML is focusing on the most common formats used in the world of machine learning:

  • Text files containing comma separated values (CSV), tab-separated values (TSV), the Attribute-Relation File Format (ARFF) which was introduced by the open-source Weka machine learning framework, RData files or the SVMLight format.
  • Database tables: Hive tables (Hadoop), Azure Tables and SQL Databases in Azure

Since AzureML runs in the Azure cloud, all your data must be in the cloud as well. Either you already uploaded your data to Azure (e.g. your data is stored in an Azure SQL Database) or you will upload it explicitly for this project. In both cases be careful to store your data in the same region as where you’re running your AzureML, since in the preview period, AzureML only runs from the South Central US data center. If you store your data in another data center it will be slower and more expensive to run your experiments.

Let’s first consider the scenario where you upload your data from a local file directly into AzureML (Uploading a DataSet), then we cover the scenario where your data is already somewhere in Azure (Reading data).

Uploading a DataSet

A lot of sample machine learning data sets are already available out-of-the-box in Azure ML. But after some experimenting with public data, you probably want to play with your own data. If you didn’t have your data anywhere on Azure yet, you can upload it as a new dataset in AzureML directly. But before we start adding data sets, first a warning: In the current preview we cannot delete uploaded datatsets. We can override an existing data set with new data, but if you create 1001 data sets, they will be in the list forever (that is: until Microsoft fixes this limitation). Because of this, if your dataset is not yet fixed, consider uploading the data file(s) into a custom Azure blob store and then load them with the reader from within your experiment.

To add a new dataset, click the +New button at the bottom left of the ML Studio screen, and select DataSet –> From local file. In the next dialog box, we can pick the file to upload, provide a name (choose well, it cannot be altered later on), select the type of data in the file and provide an optional description:
image

If you select the checkbox you select an existing dataset, who’s content will be overwritten by the file you select. It is impossible to delete or rename a datset, but you can always upload an empty file ‘as a new version’ of a large data set to truncate it.

If we now want to use this data, we create a new experiment by clicking the +New button. In this new experiment under the Saved Datasets we will find our uploaded dataset among the list. Just drag it to the design surface.

image

Also remember the search box at the top: by typing part of an object name (and a data set is one of the many objects we have in AzureML) we get a filtered list which makes it easier to find an object.

Now that we have our data in AzureML we can start interacting with it, such as simply visualizing our data: click in the circle under the data set and select Visualize:
image

This will open up the overview screen, showing basic statistical information on each data field:

image

Reading data

Another way to get data in an AzureML experiment is by first uploading your data in a Azure SQL Database, an Hadoop cluster (such as HDInsight) or upload the files with data (same data types as we had in the previous paragraph) into an Azure blob store.

In this case you do not need to create a data set, but you can immediately create a new experiment.

In this experiment, locate the Reader under Data Input and Output and drag it into the experiment.
image
When we click in the Reader, we get on the right-hand side all the configurable properties of this Reader. The most important property is the data source type. This one determines which other properties are needed. Select over here the location where your data can be found and configure the other properties appropriately
image

When we now run the experiment, we can visualize the data from this reader, just as we could we an uploaded data set. But we have an extra option. By clicking Save as dataset, we can permanently store this data in AzureML. This speeds up the runtime of an experiment, but it increases the storage cost (we store another redundant copy of the data).
image

In a next blog post, I will discuss data preprocessing.

Comments (10) -

  • just click the following page

    8/5/2014 1:50:19 PM |

    Howdy very cool site!! Man .. Excellent .. Wonderful .. I'll bookmark your web site and take the feeds also¡KI am glad to search out numerous useful info here within the post, we want work out extra strategies on this regard, thanks for sharing. . . . . .

  • Kelly B. Polanco

    8/6/2014 11:57:07 AM |

    It’s very simple to find out any matter on net as compared to textbooks, as I found this article at this web site.

  • real racing 3 cheats

    8/7/2014 8:47:34 PM |

    Hi! I've been following your weblog for a while now and finally got the bravery to go ahead and give you a shout out from  Kingwood Texas! Just wanted to tell you keep up the good work!

  • DEBORA Laurence

    8/11/2014 9:24:15 AM |

    ELIHES,Transport de voyageur & vtc elihes.com/, Chauffeur privé sur paris et région parisienne.

  • DEBORA Laurence

    8/11/2014 8:40:08 PM |

    annuaires-gratuit.com/ vous propose de créer gratuitement un annuaire de sites internet pour un bon référencement.

  • DEBORA Laurence

    8/11/2014 9:53:21 PM |

    annuaires-gratuit.com/ vous propose de créer gratuitement un annuaire de sites internet pour un bon référencement.

  • Pizza Delivery Software

    9/12/2014 12:46:51 AM |

    I knew a new thing. thanks for sharing

  • DEBORA Laurence

    9/17/2014 12:28:10 PM |

    Covoiturage, annonce & covoiturage. Deposer votre annonce gratuitement sur portail2000.com/ et faites des rencontres

  • interior

    9/18/2014 3:15:10 PM |

    Nice blog and attracting colors!

  • Bert Timi

    9/21/2014 10:31:10 AM |

    Good work Smile cheers!

  • Bryan Tousom

    9/23/2014 7:48:02 PM |

    Havin that much written content do you somehow have any issues of copyright infringement? My website has lots of exclusive content I've either created myself or outsourced but it appears a lot of it is popping it up all over the internet without my agreement. Do you know any ways to help prevent content from being ripped off? I'd really appreciate it.

  • Joe Bartlette

    9/24/2014 3:24:08 AM |

    It’s arduous to search out knowledgeable folks on this subject, but you sound like you realize what you’re speaking about! Thanks

  • Greg Sabel

    9/25/2014 7:58:46 AM |

    What i don't understood is actually how you're not really much more well-liked than you might be right now. You're very intelligent. You realize thus significantly relating to this subject, made me personally consider it from numerous varied angles. Its like women and men aren't fascinated unless it is one thing to do with Lady gaga! Your own stuffs nice. Always maintain it up!

  • Jeri Hermenegildo

    10/5/2014 7:42:40 PM |

    <a href="http://www.bizprof.sg";> accounting outsource services</a>, you can check this out too.

  • vp-corp

    10/6/2014 5:44:03 PM |

    Great post Thank yous for sharing,

  • Shayne Gunn

    10/9/2014 1:06:57 AM |

    </a> we will alwys be in a dilema to find the best and afffordable rate for hostel in singapore with the increasing cost in singapore.

  • Kathrine Apthorpe

    10/13/2014 2:07:19 PM |

    Howdy, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you prevent it, any plugin or anything you can advise? I get so much lately it's driving me mad so any assistance is very much appreciated.

  • click here

    10/16/2014 8:32:09 AM |

    Incredibly, it's just a marvelous amount of write down which I have discover through for a long time very long. Actually do aside from that examine my personal online business.

  • please click %url_domain%

    10/16/2014 7:45:34 PM |

    I want to express my appreciation to the writer just for bailing me out of this type of setting. After looking through the world wide web and getting views that were not beneficial, I assumed my entire life was well over. Existing without the presence of solutions to the difficulties you have solved all through your entire write-up is a crucial case, and ones that might have negatively damaged my entire career if I hadn't come across your blog. Your own personal mastery and kindness in dealing with all areas was tremendous. I don't know what I would've done if I had not discovered such a step like this. I can now look forward to my future. Thanks for your time very much for this reliable and results-oriented help. I will not hesitate to refer your web site to anyone who requires assistance about this issue.

Loading