Implement Your Own Algorithm in a NodeModel With a NodeDialog

We start off by explaining a very simple binner. The bins are equally spaced, such that the whole range of a certain attribute is divided into n intervals. The data points with an attribute value within the k-th interval are considered to belong to the k-th bin. Therefore, the output is the original table with the binning information appended for each instance, i.e. row. The node also requires a dialog, as the user should be able to determine the number of bins and also specify the column on which the values should be binned. See next sections for detailed descriptions of the necessary tasks:
  1. Implementing the NodeModel
    1. The validateSettings method
    2. The loadValidatedSettings / saveSettings methods
    3. The configure method
    4. The execute method
  2. Implementing the NodeDialog
LinkedInTwitterShare