This operator clusters a set of tuples.
This example uses the weka-clusterer. The weka-clusterer should use the "simplekmeans" algorithm. the arguments to set up the weka-simplekmeans is "-N 3".
| clustered = CLUSTERING({
                attributes=['age', 'income'],
                learner='weka',                
                algorithm =                
                  [
                  'model'='SimplekMeans'
                  , 'arguments'='-N 3'
                  ]                                   
              }, inputoperator) | 
For weka, there are currently the following algorithms that can be used as the "model". Further details and possible arguments can beĀ found in the Weka Docs