Skip to content

← feature_extraction package

CollapseToFeatures

Collapse all non-instance axes of a stream into a single feature axis.

This can be used to get the data into a simple unified format that most machine learning methods can handle. Specifically, this node takes a chunk, with any combination of axes (e.g., time, space, frequency, instance) and returns a chunk that has only a flat feature axis (subsuming all original axes) and an instance axis. Chunks that have no instance axis are left unchanged. Technically, if a chunk has multiple instance axes, all but the first such axis are being collapsed into the feature axis, as well. Version 1.0.0

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

fancy_custom_label

Generate a fancy custom label that has all the axis details baked into it. Not recommended with current NeuroPype since we are more restrictive about what custom labels are supposed to contain. The default is kept for back compatibility.

  • verbose name: Fancy Custom Label
  • default value: True
  • port type: BoolPort
  • value type: bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)