This operator is used to create a classifier. Therefore, the result is a stream of classifiers (this is an own datatype!)

Parameter

Example

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".

Operator

 

1
2
3
4
5
6
7
8
9
10
learned = CLASSIFICATION_LEARN({
              class='attack',             
              nominals = ['attack'=['back', 'smurf', 'spy']],
              learner = 'weka',
              algorithm =               
                  [
                  'model'='J48'
                  ]                         
               
            }, 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

Classification (nominal values):

Regression (continuous values):