Sources with the BigML Dashboard
1.2 Creating a first source
Figure 1.6 shows an example of a source in ML-ready format. Each row represents a user of a cell phone service and each column is an attribute of each user. The data is structured to predict whether a user will be canceling her account (Churn?) given her current plan (Plan), the number of minutes used last month (Talk), the number of text messages sent last month (Text), the number of applications purchased last month (Purchases), the number of megabytes of data consumed last month (Data), and the current age of the user (Age). The source is a CSV (Comma Separated Values) file and, therefore, in the right format to be processed by BigML.
To bring the source in Figure 1.6 to BigML, you can just drag and drop the file containing it on top of the BigML Dashboard. You can also paste its content into the BigML inline editor (see Chapter 9 ). A new source in the source list view will be shown. (See Figure 1.7 .)
BigML automatically assigns to each source a unique identifier, “source/id”, where id is a string of 24 alpha-numeric characters, e.g., “source/570c9ae884622c5ecb008cb6”. This special ID can be used to retrieve and refer to the source both via the BigML Dashboard and the BigML API.
Once you click on the newly created source, you will arrive at a new page whose URL matches with the assigned ID. You will see that BigML has parsed the source and automatically identified the type of each of its seven fields as shown in Figure 1.8 .
Note: In a source view, BigML transposes rows and columns compared to your original data (compare Figure 1.6 and Figure 1.8 ). That is, each row is associated with one of the fields of your original data, and each column shows the corresponding values of an instance. It becomes much easier to navigate them using a web browser if they are arranged this way when sources contain hundreds or thousands of fields. A source view only shows the first 25 intances of your data. The main goal of this view is to help you quickly identify if BigML is parsing your data correctly.