Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print method for LOO #435

Closed
topepo opened this issue May 31, 2016 · 2 comments
Closed

print method for LOO #435

topepo opened this issue May 31, 2016 · 2 comments
Labels

Comments

@topepo
Copy link
Owner

@topepo topepo commented May 31, 2016

> tt <- train(Species ~ ., data = iris, method = "lda", trControl = trainControl(method = "LOOCV"))
Loading required package: MASS
> tt
Linear Discriminant Analysis 

150 samples
  4 predictor
  3 classes: 'setosa', 'versicolor', 'virginica' 

No pre-processing
Resampling: Leave-One-Out Cross-Validation 
Summary of sample sizes: 149, 149, 149, 149, 149, 149, ... 
Resampling results:





> 
topepo added a commit that referenced this issue May 31, 2016
@topepo topepo closed this May 31, 2016
@claczny
Copy link

@claczny claczny commented Jun 3, 2016

I get a different behaviour , i.e., an error, when using rf instead of lda:

> tt <- train(Species ~ ., data = iris, method = "rf", trControl = trainControl(method = "LOOCV"))
> tt
Random Forest 

150 samples
  4 predictor
  3 classes: 'setosa', 'versicolor', 'virginica' 

No pre-processing
Resampling: Leave-One-Out Cross-Validation 
Summary of sample sizes: 149, 149, 149, 149, 149, 149, ... 
Resampling results across tuning parameters:

Error in `[.data.frame`(tuneAcc, , params, drop = FALSE) : 
  undefined columns selected

Thank you very much for looking into this.

Best,

Cedric

[EDIT]

packageVersion("caret")
[1] ‘6.0.68’

@rsangole
Copy link

@rsangole rsangole commented Mar 9, 2017

I'm facing this exact issue on 'rf' today. Has this issue been fixed already, or did I uncover a new bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.