-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* readme changes from other pr * update template * use defaultControl * default control and metrics * rebuild * use defaultControl * rebuild * dont track coverage stats
- Loading branch information
Showing
21 changed files
with
207 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
If you are making a feature request or starting a discussion, you can ignore everything below and go wild =D | ||
# FEATURE REQUEST | ||
|
||
If you are filing a bug, make sure these boxes are checked before submitting your issue— thank you! | ||
|
||
- [ ] Start a new R session | ||
- [ ] Install the latest version of caretEnsemble: `devtools::install_github("zachmayer/caretEnsemble")` | ||
- [ ] Install the latest version of caret: `update.packages(oldPkgs="caret", ask=FALSE)` | ||
# BUG | ||
Please use this checklist for bug reports: | ||
- [ ] [Write a minimal reproducible example](http://stackoverflow.com/a/5963610) | ||
- [ ] Include example data in the minimal reproducible example | ||
- [ ] run `sessionInfo()` | ||
|
||
### Minimal, reproducible example: | ||
Text and example code modified from [the R FAQ on stackoverflow](http://stackoverflow.com/a/5963610) | ||
## Minimal, reproducible example: | ||
start a NEW R session! | ||
|
||
#### Minimal dataset: | ||
```{R} | ||
set.seed(1) | ||
dat <- caret::twoClassSim(100) | ||
X <- dat[,1:5] | ||
y <- dat[["Class"]] | ||
``` | ||
If you have some data that would be too difficult to construct using `caret::twoClassSim` or `caret::SLC14_1`, then you can always make a subset of your original data, using e.g. `head()`, `subset()` or the indices. Then use e.g. `dput()` to give us something that can be put in R immediately, e.g. `dput(head(iris, 4))` | ||
rm(list=ls(all=T)) | ||
gc(reset=T) | ||
set.seed(1L) | ||
If you must use `dput(head())`, please first remove an columns from your dataset that are not necessary to reproduce the error. | ||
|
||
If your data frame has a factor with many levels, the `dput` output can be unwieldy because it will still list all the possible factor levels even if they aren't present in the the subset of your data. To solve this issue, you can use the `droplevels()` function. Notice below how species is a factor with only one level: `dput(droplevels(head(iris, 4)))` | ||
dat <- caret::twoClassSim(100L) | ||
X <- dat[,1L:5L] | ||
y <- dat[["Class"]] | ||
#### Minimal, runnable code: | ||
```{R} | ||
models <- caretEnsemble::caretList( | ||
X, y, | ||
methodList=c('glm', 'rpart'), | ||
trControl=caret::trainControl( | ||
method="cv", | ||
number=5, | ||
classProbs=TRUE, | ||
savePredictions="final") | ||
methodList=c('glm', 'rpart') | ||
) | ||
ens <- caretEnsemble::caretStack(models) | ||
print(ens) | ||
``` | ||
|
||
### Session Info: | ||
If you have some data that would be too difficult to construct using `caret::twoClassSim` or `caret::SLC14_1`, then you can always make a subset of your original data, using e.g. `head()`, `subset()` or the indices. Then use e.g. `dput()` to give us something that can be put in R immediately, e.g. `dput(head(iris, 4))` | ||
|
||
If you must use `dput(head())`, please first remove an columns from your dataset that are not necessary to reproduce the error. | ||
|
||
If your data frame has a factor with many levels, the `dput` output can be unwieldy because it will still list all the possible factor levels even if they aren't present in the the subset of your data. To solve this issue, you can use the `droplevels()` function: `dput(droplevels(head(iris, 4)))` | ||
|
||
## Session Info: | ||
```{R} | ||
utils::sessionInfo() | ||
``` | ||
|
||
You can delete the text in each section that explains how to do it correctly. | ||
Be sure to test your 2 chunks of code in an empty R session before submitting your issue! | ||
Please cut/paste the output. If your version of caret or caretEnsemble is old, upgrade them with: | ||
```R | ||
update.packages(oldPkgs="caret", ask=FALSE) | ||
devtools::install_github("zachmayer/caretEnsemble") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# huge XML/HTML file messes up git stats lol | ||
coverage.rds | ||
coverage-report.html | ||
cobertura.xml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.