Introduction to Orange Tool

Orange is a C++ core object and routines library that incorporates a huge variety of standard and non-standard machine learning and data mining algorithms. It is an open-source data visualization, data mining, and machine learning tool. Orange is a scriptable environment for quick prototyping of the latest algorithms and testing patterns. It is a group of python-based modules that exist in the core library. It implements some functionalities for which execution time is not essential, and that is done in Python.

Orange Widgets

Widgets offer essential functionality, like

  • Displaying data table and allowing to selection features
  • Data reading
  • Training predictors and comparison of learning algorithms
  • Data element visualization, etc.

There are 3 ways to add widget to the canvas:

  1. Double click on the widget.
  2. Drag the widget to the canvas.
  3. Right click on the canvas for the widget menu.

In the canvas, double click on the File widget to open it. Then, you can load your own dataset or browse it from the custom documentation dataset. Here as usual I load iris.tab dataset in the File widget which comes with the orange tool.

File and Data info

  1. Drag the File widget to the canvas.
  2. Drag the Data Info widget to the canvas.

3. At the right side of the File widget, there is a semi-circular shape. Mouse down on it and drag it to the Data Info widget.

4. Notice that there is a link between both widget with the word data on top.

File and Data Table

  1. Drag a Data Table widget to the canvas.
  2. Connect File widget to the Data Table widget.
  3. Double click on the Data Table widget to see the rows & columns of dataset.

Distribution

The Distribution widget displays the value distribution of discrete or continuous attributes. If the data contains a class variable, distributions may be conditioned on the class.

  1. Drag a Distribution widget to the canvas.
  2. Connect File widget to the Distribution widget.
  3. Double click on the Distribution widget to see the visualization.
  4. At the top left, select a different variable and check the distribution results

Scatter Plot

The Scatterplot widget provides a 2-dimensional scatterplot visualization for both continuous and discrete-valued attributes. The data is displayed as a collection of points, each having the value of the x-axis attribute determining the position on the horizontal axis and the value of the y-axis attribute determining the position on the vertical axis.

  1. Drag a Scatter Plot widget into the canvas.
  2. Connect the File widget to the Scatter Plot widget. The step is similar to how it was for the Distribution widget.
  3. Double click on the Scatter Plot widget to see the visualization.
  4. You can change the x-axis and y-axis based on the features available.

If you want to load external data you can select the URL option in the File widget, where one can paste the external dataset link to load the data.

Conclusion
We have explored orange tool in detail and visualized the dataset that we have loaded. We tried out Distribution, and Scatter Plot widgets using the Iris dataset.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store