arfficionado v0.1.0 Arfficionado.ListHandler View Source

Example handler module that collects a list of {instance, weight} tuples, where instance is a list of values (corresponding to the attributes defined in the ARFF header) and weight is an integer.

Link to this section Summary

Functions

Returns the instance list (i.e. the handler state) as is; the attributes are ignored.

Returns the collected instances.

Produces initial state, ignores given argument.

Appends {values, weight} to the instance list (i.e. the handler state) and returns it. The optional comment is ignored.

Link to this section Functions

Link to this function

attributes(attributes, instances)

View Source

Returns the instance list (i.e. the handler state) as is; the attributes are ignored.

Returns the collected instances.

Produces initial state, ignores given argument.

Link to this function

instance(values, weight, comment, instances)

View Source

Appends {values, weight} to the instance list (i.e. the handler state) and returns it. The optional comment is ignored.