Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

paramtest

The paramtest R package includes a set of functions used to iterate a function across multiple sets of parameters. It allows you to train algorithms, run simulations, etc. while easily varying parameters.

This package offers a flexible way to undergo a grid search or random search when varying parameters. Users must provide a function to iterate over, so all inputs and outputs of the function are specified by the user, offering complete control over the process. paramtest encapsulates the search process (along with options to parallelize over multiple processor cores), but is otherwise intentionally left very general-purpose.

However, the package was made with machine learning hyperparameter optimization and statistical power simulations in mind—see the vignettes for examples of these use cases.

Version 0.1.0 has been released. However, please be aware that this package is still in development, and as such, bugs may still exist, and functions and function parameters may still be subject to change.

The most recent stable release is available on CRAN, and can be installed like so:

install.packages("paramtest")

You can also install the stable release from Github:

install.packages("devtools")
devtools::install_github("jeff-hughes/paramtest@v0.1.0", build_vignettes=TRUE)

If you would like to install the latest development version, you can do so with the following code:

install.packages("devtools")
devtools::install_github("jeff-hughes/paramtest", build_vignettes=TRUE)

Installation Issues

Networked computers can sometimes result in installation issues, as the install_github function sometimes has difficulty with networked directories. If this happens to you, use the .libPaths() function to find the path to your R libraries. That will likely give you a path starting with two backslashes, but you will need to convert that to a path starting with a drive letter (e.g., 'C:', 'D:'). From there, use the following code:

install.packages("devtools")
devtools::install_github("jeff-hughes/paramtest@v0.1.0", build_vignettes=TRUE,
    args=c('--library="N:/path/to/libraries/"'))

Obviously, change the path to the path where your R libraries are stored.

About

R package for varying parameters in simulations or other iterative processes

Resources

Packages

No packages published

Languages