2D Double Spiral

Ver. 1.0.0 (2022-12-14)

This module provides the native stream class DoubleSpiral2D. It provides 721 instances with 2-dimensional feature data that follow a double spiral pattern.

class mlpro.bf.streams.streams.doublespiral2d.DoubleSpiral2D(p_logging=True, **p_kwargs)

Bases: StreamMLProBase

C_ID = 'DoubleSpiral2D'
C_NAME = 'Double Spiral 2D x 721'
C_VERSION = '1.0.0'
C_NUM_INSTANCES = 721
C_SCIREF_ABSTRACT = 'This benchmark test generates 721 2-dimensional inputs positioned in a double spiral.'
C_BOUNDARIES = [-10, 10]
_setup_feature_space() MSpace

Custom method to set up the feature space of the stream. It is called by method get_feature_space().

Returns:

feature_space – Feature space of the stream.

Return type:

MSpace

_init_dataset()

Custom method to generate stream data as a numpy array named self._dataset.