one_hot_decode
Converts a struct containing encoded item sets into a struct containing categorical values.
Syntax
cdata = one_hot_decode(bdata)
Inputs
- bdata
- Contains the Boolean values.
Outputs
- cdata
- Contains the categorical values.
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
]