arfficionado v0.1.0 Arfficionado.MapHandler View Source

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

Link to this section Summary

Functions

Extracts the attribute names and stores them in the upated state.

Returns the list of {instance, weight}-tuples accumulated.

Produces initial state, ignores given argument.

Converts the instance into a map of attribute-value pairs, and stores it and its instance weight in the updated state.

Link to this section Functions

Link to this function

attributes(attributes, arg)

View Source

Extracts the attribute names and stores them in the upated state.

Returns the list of {instance, weight}-tuples accumulated.

Produces initial state, ignores given argument.

Link to this function

instance(values, weight, comment, arg)

View Source

Converts the instance into a map of attribute-value pairs, and stores it and its instance weight in the updated state.