one_hot_decode

Converts a struct containing encoded item sets into a struct containing categorical values.

Attention: Available only with Twin Activate commercial edition.

Syntax

cdata = one_hot_decode(bdata)

Inputs

bdata
Contains the Boolean values.
Type: struct
items
The one hot encoded values.
Type: Boolean
size
The size.
Type: integer
support
The support threshold.
Type: double

Outputs

cdata
Contains the categorical values.
Type: struct
items
The frequent items.
Type: integer
Dimension: scalar | vector | matrix
size
The size.
Type: integer

Example

Usage of apriori:

bdata = struct('items', [1 1 0 0 1], 'size', 3', 'support', 0.3);
cdata = one_hot_decode(bdata)

cdata = struct [
  items: 
  {
    [1,1] [Matrix] 1 x 3
    1  2  5
    [1,2] 0.3
  }
  size: 3
]