PINE LIBRARY

TimeSeriesClassificationActivationFunctions

Library "TimeSeriesClassificationActivationFunctions"
Provides some activation functions useful in time series classification.
___

reference:
github.com/PYFTS/pyFTS/blob/master/pyFTS/common/Activations.py

method scale(dist, weights)
  Activate values by a normalized scale.
  Namespace types: map<int, float>
  Parameters:
    dist (map<int, float>): Source distribution map.
    weights (map<int, float>): Weights distribution map.
  Returns: Normalized distribution map.

method softmax(dist, weights)
  Activate values with a softmax algorithm.
  Namespace types: map<int, float>
  Parameters:
    dist (map<int, float>): Source distribution map.
    weights (map<int, float>): Weights distribution map.
  Returns: Normalized distribution map.

method argmax(dist, weights)
  Activate values with a argmax algorithm.
  Namespace types: map<int, float>
  Parameters:
    dist (map<int, float>): Source distribution map.
    weights (map<int, float>): Weights distribution map.
  Returns: first key of argmax value of the transformed distribution.
activationfunctionMATHtimeseriesanalysis

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer