Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jrnold/mlspearer

Infrastructure for resampling, permuation, and cross-validation in R
https://github.com/jrnold/mlspearer

Last synced: 29 days ago
JSON representation

Infrastructure for resampling, permuation, and cross-validation in R

Awesome Lists containing this project

README

        

---
output:
md_document:
variant: markdown_github
---

```{r, echo = FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
```

# ramsleep

[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis-CI Build Status](https://travis-ci.org/jrnold/ramsleep.svg?branch=master)](https://travis-ci.org/jrnold/ramsleep)
[![codecov](https://codecov.io/gh/jrnold/ramsleep/branch/master/graph/badge.svg)](https://codecov.io/gh/jrnold/ramsleep)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/jrnold/ramsleep?branch=master&svg=true)](https://ci.appveyor.com/project/jrnold/ramsleep)

The **ramsleep** package provides functions that implement resampling methods including the bootstrap, jackknife, random test/train sets, k-fold cross-validation, leave-one-out and leave-p-out cross-validation, time-series cross validation, time-series k-fold cross validation, permutations, rolling windows.

## Comparison to Other Packages

This is similar in approach to **modelr** functions `bootstrap` and `crossv_kfold`,
and the **rsample** package. However, both of those packages only work with data frames.

The functions in this package are lower-level.
The functions in this package take single integer representing the number of
items to sample from, and return lists of integers representing the indexes in each sample.
These indexes can be applied to any type of object, or used to build
higher level functions like those in **modelr** or **rsample**.

## Installation

**ramsleep** is not on CRAN. You can install the
development version with

``` r
# install.packages("devtools")
devtools::install_github("jrnold/ramsleep")
```

## Code of Conduct

Please note that the 'ramsleep' project is released with a [Contributor Code of Conduct](.github/CODE_OF_CONDUCT.md). By contributing to this project, you
agree to abide by its terms.