Max information gains
ComputeMaxInfoGains(
data,
decision,
contrast_data = NULL,
dimensions = 1,
divisions = 1,
discretizations = 1,
seed = NULL,
range = NULL,
pc.xi = 0.25,
return.tuples = FALSE,
interesting.vars = vector(mode = "integer"),
require.all.vars = FALSE,
use.CUDA = FALSE
)
A data.frame
with the following columns:
IG
-- max information gain (of each variable)
Tuple.1, Tuple.2, ...
-- corresponding tuple (up to dimensions
columns, available only when return.tuples == T
)
Discretization.nr
-- corresponding discretization number (available only when return.tuples == T
)
Additionally attribute named run.params
with run parameters is set on the result.
input data where columns are variables and rows are observations (all numeric)
decision variable as a binary sequence of length equal to number of observations
the contrast counterpart of data, has to have the same number of observations - not supported with CUDA
number of dimensions (a positive integer; 5 max)
number of divisions (from 1 to 15; additionally limited by dimensions if using CUDA)
number of discretizations
seed for PRNG used during discretizations (NULL
for random)
discretization range (from 0.0 to 1.0; NULL
selects probable optimal number)
parameter xi used to compute pseudocounts (the default is recommended not to be changed)
whether to return tuples (and relevant discretization number) where max IG was observed (one tuple and relevant discretization number per variable) - not supported with CUDA nor in 1D
variables for which to check the IGs (none = all) - not supported with CUDA
boolean whether to require tuple to consist of only interesting.vars
whether to use CUDA acceleration (must be compiled with CUDA)
# \donttest{
ComputeMaxInfoGains(madelon$data, madelon$decision, dimensions = 2, divisions = 1,
range = 0, seed = 0)
# }
Run the code above in your browser using DataLab