-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
71 lines (58 loc) · 2.43 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
output:
md_document:
variant: markdown_github
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# 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:
```R
install.packages("paramtest")
```
You can also install the stable release from Github:
```R
install.packages("devtools")
devtools::install_github("jeff-hughes/[email protected]", build_vignettes=TRUE)
```
If you would like to install the latest development version, you can do so with
the following code:
```R
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:
```R
install.packages("devtools")
devtools::install_github("jeff-hughes/[email protected]", build_vignettes=TRUE,
args=c('--library="N:/path/to/libraries/"'))
```
Obviously, change the path to the path where your R libraries are stored.