Class: SeriesClassification

SeriesClassification()

new SeriesClassification()

Creates a series classification object using the constructor from emscripten
Properties:
Name Type Description
Module.SeriesClassificationCpp function constructor from emscripten
Source:

Methods

getCosts() → {Array}

Returns an array of costs to match the input series to each example series. A lower cost is a closer match
Source:
Returns:
Type
Array

process(inputSeries) → {Number}

Deprecated! Use run()
Parameters:
Name Type Description
inputSeries
Source:
Returns:
Type
Number

reset() → {Boolean}

Returns the model set to its initial configuration.
Source:
Returns:
true indicates successful initialization
Type
Boolean

run(inputSeries) → {Number}

Evaluates an input series and returns the index of the closet example
Parameters:
Name Type Description
inputSeries Object an array of arrays
Source:
Returns:
The index of the closest matching series
Type
Number

train(newSeriesSet) → {Boolean}

Resets the model, and adds a set of series to be evaluated
Parameters:
Name Type Description
newSeriesSet Object an array of objects, each with input: and label:
Source:
Returns:
True indicates successful training.
Type
Boolean