mi2-warsaw / FSelectorRcpp

@@ -30,7 +30,7 @@
Loading
30 30
#' @param discIntegers logical value.
31 31
#' If true (default), then integers are treated as numeric vectors and they are discretized.
32 32
#' If false  integers are treated as factors and they are left as is.
33 -
#' @param threads Number of threads for parallel backend.
33 +
#' @param threads defunct. Number of threads for parallel backend - now turned off because of safety reasons.
34 34
#'
35 35
#' @return
36 36
#'
@@ -76,6 +76,7 @@
Loading
76 76
                             type = c("infogain", "gainratio", "symuncert"),
77 77
                             equal = FALSE, discIntegers = TRUE,
78 78
                             threads = 1) {
79 +
79 80
  if (!xor(
80 81
          all(!missing(x), !missing(y)),
81 82
          all(!missing(formula), !missing(data)))) {

@@ -20,12 +20,9 @@
Loading
20 20
  std::vector<double> varEntropy(xx.length());
21 21
  std::vector<double> jointEntropy(xx.length());
22 22
23 -
  if(threads < 1) threads = omp_get_max_threads();
24 -
25 23
  std::shared_ptr<fselector::discretize::DiscControl> control =
26 24
    std::make_shared<fselector::discretize::mdl::DiscControlMdl>();
27 25
28 -
  #pragma omp parallel for shared(xx, varEntropy, jointEntropy, y, control) num_threads(threads) schedule(dynamic)
29 26
  for(int i = 0; i < xx.size(); i++)
30 27
  {
31 28
    SEXP x = xx[i];
Files Coverage
R 98.26%
inst/include 96.51%
src 100.00%
Project Totals (21 files) 98.13%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading