CollinErickson / comparer
Showing 1 of 1 files from the diff.

@@ -164,12 +164,18 @@
Loading
164 164
        self$paruppertrans <- c(self$paruppertrans, pari$fromraw(pari$upper))
165 165
        self$partrans <- c(self$partrans, pari$partrans)
166 166
      }
167 +
      stopifnot(length(self$parnames) == c(length(self$parlowerraw),
168 +
                                          length(self$parupperraw),
169 +
                                          length(self$parlowertrans),
170 +
                                          length(self$paruppertrans),
171 +
                                          length(self$partrans)))
167 172
      self$parlist <- parlist
168 173
      if (!is.null(X0)) {
169 174
        stop("X0 not working yet, need to check with raw/trans")
170 175
      }
171 176
      X0trans <- NULL
172 177
      if (!missing(n_lhs)) {
178 +
        # Use add_LHS here?
173 179
        Xlhstrans <- lhs::maximinLHS(n=n_lhs, k=length(self$parnames))
174 180
        Xlhstrans <- sweep(sweep(Xlhstrans,
175 181
                                 2, self$paruppertrans - self$parlowertrans, "*"
@@ -366,7 +372,7 @@
Loading
366 372
      while(as.numeric(Sys.time() - start_time, units='secs') < sec) {
367 373
        self$add_EI(n=batch_size, covtype=covtype, nugget.estim=nugget.estim)
368 374
        self$run_all(verbose=0, ...)
369 -
        ncompleted <- ncompleted + 1
375 +
        ncompleted <- ncompleted + batch_size
370 376
        pb$update(ratio=min(1, as.numeric(Sys.time() - start_time, units='secs') / sec))
371 377
      }
372 378
      pb$terminate()
Files Coverage
R 77.78%
Project Totals (4 files) 77.78%
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