mi2-warsaw / FSelectorRcpp

Compare 2d0b635 ... +3 ... 147b031

Showing 1 of 3 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.
man/relief.Rd has changed.

@@ -22,9 +22,10 @@
Loading
22 22
#'
23 23
#' Marko Robnik-Sikonja, Igor Kononenko: An adaptation of Relief for attribute estimation in regression. In: Fourteenth International Conference on Machine Learning, 296-304, 1997.
24 24
#'
25 +
#' @details The function and it's manual page taken directly from \pkg{FSelector}:
26 +
#' Piotr Romanski and Lars Kotthoff (2018). FSelector: Selecting Attributes.
27 +
#' R package version 0.31. https://CRAN.R-project.org/package=FSelector
25 28
#'
26 -
#' @return
27 -
#' @export
28 29
#'
29 30
#' @examples
30 31
#'
@@ -35,9 +36,12 @@
Loading
35 36
#' subset <- cut_attrs(weights, 2)
36 37
#' f <- to_formula(subset, "Species")
37 38
#' print(f)
38 -
#'
39 +
#' @export
39 40
relief <- function(formula, data, x, y, neighboursCount = 5, sampleSize = 10) {
40 41
42 +
  stopifnot(neighboursCount >= 1)
43 +
  stopifnot(sampleSize >= 1)
44 +
41 45
  if (!xor(
42 46
    all(!missing(x), !missing(y)),
43 47
    all(!missing(formula), !missing(data)))) {

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
Project Totals (22 files) 90.41%
Loading