This release fixes bugs that changed the results of several measures and search algorithms. Results obtained with earlier versions may differ.
MDLC() now has target = "minimize". It
returns a description length (lower is better), but was marked as
“maximize”, so search algorithms preferred the worst feature
subsets.relief() with a numeric class (RReliefF) always
returned 0. It now returns the correct weights, and the class difference
is divided by k like the other accumulators.giniIndex() warns when features are continuous (the
index tends to 1). Features should be discrete; see
discretizeFeatures().verbose output of every search algorithm (including
the progress of geneticAlgorithm()) is now sent with
message() instead of being printed with cat(),
so it can be silenced with suppressMessages(). Code that
captured it with capture.output() must use
type = "message".discretizeFeatures() converts continuous features into
integer codes 1..bins (equal-width or equal-frequency
intervals), for the measures that need discrete data.sequentialForwardSelection(): the returned
bestFitness was not the value of the returned subset when
the last step improved it; stop = TRUE used the class type
instead of the measure target, returning an empty set with numeric
classes or minimized measures.sequentialForwardSelection(),
sequentialFloatingForwardSelection() and
geneticAlgorithm() scored the empty set as 0, so maximized
measures with negative values returned an empty subset. They now start
from -Inf.
sequentialFloatingForwardSelection() no longer requires a
positive value to exclude a feature.sequentialFloatingForwardSelection() and
sequentialFloatingBackwardSelection() skip the feature just
included or removed instead of evaluating it again.antColony() used the last column as the class and
inferred the problem type from the measure target; the pheromone deposit
was negative with negative measure values.hillClimbing() failed with few features.tabu(): when minimizing, iterNoImprovement
counted improvements as non-improvements; numNeigh = 1 and
tamTabuList = 1 failed.tabu() intensification stage:
interPercentaje = 100;whaleOptimization(): when minimizing, the best whale
was only updated if every whale improved; the exploration phase compared
the whale index with a feature index; the number of iterations was
validated with population.simulatedAnnealing() rejects reduction
outside (0, 1), which looped forever, and innerIter < 1;
it keeps the original column names.geneticAlgorithm(): verbose printed
nothing in non-interactive sessions and when minimizing.selectThresholdRange() ignored the measure target.selectPercentile() selected one feature when the
percentile rounded to 0.filterEvaluator("fscore") and
filterEvaluator("RFSM") failed although both were listed in
attr(filterEvaluator, "methods"). The list and the accepted
names now come from the same table; normalizedRelief and
normalizedReliefFeatureSetMeasure are also available by
name, and "RFSM" is kept as a short name of
"ReliefFeatureSetMeasure".giniIndex() has
needsDataToBeDiscrete = TRUE, as it needs discrete
features, and its warning starts like the other discrete measures.ReliefFeatureSetMeasure() picked the k farthest
examples (and all ties) instead of the k nearest neighbours.normalizedReliefFeatureSetMeasure() ignored its
parameters.cramer(): unused factor levels inflated the
statistic.determinationCoefficient() failed on an empty feature
set.fscore() raises a clear error with non-numeric
features.ReliefFeatureSetMeasure() computes all distances at
once (about 80x faster) and relief() vectorizes the
distance computation (about 50x faster), with identical results.fscore(), Jd(), MDLC() and
LCC() use base R.digest, dplyr, tidyr,
prodlim, rlang and purrr from
Imports.caret and e1071 moved from Imports to
Suggests: they are only needed for wrapper measures (e1071
only in classification problems). wrapperEvaluator() raises
a clear error if they are not installed. Installing FSinR no longer
pulls in caret and its dependencies.library() on
caret and GA when it is loaded; they are used
through the namespace imports.set.seed()),
the wrapper example of the methods vignette is actually run, a table of
the filter methods is built from their attributes, and the text matches
the code.README.md with installation and usage
examples.inst/
and the NEWS file, superseded by NEWS.md.tabu() was rewritten (630 -> 425 lines in
localSearch.R); apart from the intensification fixes above
it gives the same results.featureSelection() wrappers were rewritten with them.