interactions3Way: Calculates 3-Way Interactions

Description Usage Arguments Value Examples

Description

Formula: I(X;Y;C) = I(X,Y;C) - IG(X;C) - IG(Y;C), where I(X;Y;C) is 3-way Interaction gain of the attributes X and Y, given the context (i.e. class) attribute C. Hence, I(X,Y;C) is a joint 2-way interaction gain (i.e. Information Gain) of the attributes X and Y, and I(X;C) and I(Y;C) are 2-way Interaction gains (i.e. Information Gains) of the attributes X and Y, respectively.

Usage

1
interactions3Way(df, classAtt, speedUp = FALSE)

Arguments

df

A discrete data.frame

classAtt

A class column of the df (string)

speedUp

A (boolean) parameter. If TRUE, indicates whether the pairs of attributes with Information Gain equal to zero (on the 4th decimal) should be pruned. This speeds up calculations for larger datasets. By default it is turned off (i.e. set to FALSE).

Value

A list with a: 1) data frame with 3-way interactions, 2)list of 2-way interactions of the input attributes

Examples

1
2
3
interactions3Way(golf, "Play")
interactions3Way(golf, "Play", speedUp = TRUE)
interactions3Way(golf, "Play", speedUp = FALSE)

integr documentation built on May 24, 2019, 5:06 p.m.