timeflux_dsp.nodes.squashing


squashing

class timeflux_dsp.nodes.squashing.Discretize(range, default=None)[source]

Bases: timeflux.core.node.Node

Discretize data based on defined ranges :ivar i: Default input, expects DataFrame. :vartype i: Port :ivar o: Default output, provides DataFrame.

Parameters
  • range (dict) – dictionary with keys corresponding to the discrete labels and values are lists of tuple with boundaries.

  • default (float|str|None) –

Instantiate the node.

update()[source]

Update the input and output ports.