Description Usage Arguments Examples
Generate a table containing attribute permutations.
1 | permutate_attribute_level_table(k, m = 2)
|
k |
Supply the number of attributes to change |
m |
Number of Responses. Default: 2. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Example of generating all attribute level swap permutations
k = 3
nClass = 2 ^ k
# Total number of label swaps for unstructured mixture
factorial(nClass)
# Total number of label swaps for structured mixture
factorial(k) * (2 ^ k)
# Create the permutation table
permutation_table = permutate_attribute_level_table(k = 3, m = 2)
# Loop over columns to find the positions of the equivalent attribute level swaps
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.